Log messages from Groovy are truncated

Description

Messages written to the Karaf log from a telemetry adapter groovy script appear to be truncated. How can I see the entire log message?

 

Example:

log.error("Generating collection set for JTI OpenConfig message: {}", openConfigData) --> 2025-01-22T09:33:32,573 | ERROR | AggregatorFlush-Telemetry-OpenConfig | CollectionSetGenerator | 9 - org.ops4j.pax.logging.pax-logging-api - 2.0.19 | Generating collection set for JTI OpenConfig message: system_id: "vjunos-sw1"\ncomponent_id: 65535\npath: "sensor_1004_8_1:/interfaces/:/interfaces/:xmlproxyd_TM_Thread_1"\nsequence_number: 9489\ntimestamp: 1737560010673\nkv {\n key: "__timestamp__"\n uint_value: 1737560010674\n}\nkv {\n key: "__junos_re_stream_creation_timestamp__"\n uint_value: 1737560010606\n}\nkv {\n key: "__junos_re_payload_get_timestamp__"\n uint_value: 1737560010671\n}\nkv {\n key: "__prefix__"\n str_value: "/interfaces/interface[na <--- truncated!
log.error("kvlist: {}", openConfigData.getKvList()) --> 2025-01-22T09:33:32,574 | ERROR | AggregatorFlush-Telemetry-OpenConfig | CollectionSetGenerator | 9 - org.ops4j.pax.logging.pax-logging-api - 2.0.19 | kvlist: [key: "__timestamp__"\nuint_value: 1737560010674\n, key: "__junos_re_stream_creation_timestamp__"\nuint_value: 1737560010606\n, key: "__junos_re_payload_get_timestamp__"\nuint_value: 1737560010671\n, key: "__prefix__"\nstr_value: "/interfaces/interface[name=\'em1\']/"\n, key: "state/counters/in-octets"\nuint_value: 22534775\n, key: "state/counters/in-pkts"\nuint_value: 286113\n, key: "state/counters/out-octets"\nuint_value: 12894098\n, key: "state/counters/out-pkts"\nuint_value: 210648\n, key: "__prefix <--- truncated!

Acceptance / Success Criteria

None

Activity

Show:
Done

Details

Assignee

Reporter

Labels

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created January 23, 2025 at 10:03 PM
Updated March 11, 2025 at 5:33 PM
Resolved March 11, 2025 at 5:08 PM

Flag notifications