Issues

Select view

Select search mode

 

Node level menu option to turn on/off debug level logging of collected and pollerd for node

Description

Currently, we have to enable collected at DEBUG level for all devices by default. then grab thru the collectd logs to try and find the node we are troubleshooting. This is not feasible if there are lots of devices. It would be great to be able to enable debug level logging of a specific node from its node page. The output would go to a separate set of logs instead of the default collected.log.
This can be manually done with log4j2.xml by editing the xml file, but a menu option for it would be preferred.

Acceptance / Success Criteria

None

Attachments

2

Lucidchart Diagrams

Details

Assignee

Reporter

Affects versions

Priority

PagerDuty

Created October 1, 2018 at 8:16 PM
Updated June 4, 2019 at 8:10 AM

Activity

Show:

John BlakeOctober 1, 2018 at 8:27 PM

I've attached 2 scripts that will output the configuration syntax to add to log4j2.xml to log a specific node.

John BlakeOctober 1, 2018 at 8:24 PM

The specific logging can be done only on pollerd and collectd since those are currently the only 2 that have Contexts available.

Basically, a new "logger" and a new "appender" are added to log42j.xml and use a filter to identify the specific node (node label, IP, etc).

2 items in confluence for explanation
https://confluence.internal.opennms.com/pages/viewpage.action?pageId=18153483
https://confluence.internal.opennms.com/display/SUP/Create+a+log+from+collected+data+for+a+specific+IP+in+log4j2.xml

B