question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add filter configuration to log appender

See original GitHub issue

Is your feature request related to a problem? Please describe. Agent will instrument all log appenders so that all logs will be exported to collector. I just want to export logs on specified appenders.

Describe the solution you’d like I think we can add configuration to filter exporting logs by appender name or log level. Configurations maybe like otel.instrumentation.log.enabled-appender-names.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
traskcommented, Sep 6, 2022

I was assuming this issue was about “appender name”, so that you could configure one appender with the particular configuration that you want, and then ask the javaagent to pick up only logs that flow through that one appender?

1reaction
rahuldimricommented, Sep 6, 2022

Yes let me give a try !!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Log4j Filters - Apache Logging Services
Appender Filters are used to determine if a specific Appender should handle the formatting and publication of the event.
Read more >
Intro to Log4j2 - Appenders, Layouts and Filters - Baeldung
This article, using an example rich approach, introduces Log4J 2 Appender, Layout and Filter concepts.
Read more >
Log4j2 Filter particular level in apender - Stack Overflow
In this case Log4J will log all messages from Level.TRACE to Level.DEBUG, all levels below Level.DEBUG will be ignored. Share.
Read more >
org.apache.log4j.Appender.addFilter java code examples
How to use. addFilter. method. in. org.apache.log4j.Appender ... Creates console appender with some reasonable default logging settings.
Read more >
Configuring log4j to filter out unwanted messages in ...
log4j has a configuration named StringMatchFilter with which we can take a decision to display or not an entry in the log if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found