-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layout does not work with Log4J2 #39
Comments
hrmmm. I wonder if I can make this conditional/detectable. It may need to be a new version. I'll investigate. |
Was wondering if this is something that is likely to be dealt with in the foreseeable future? Thanks |
Simple replacement for scala-project: https://github.com/ov7a/log4j2-jsonevent-layout/blob/master/JSONEventLayoutV2.scala |
created a pullrequest that addresses the issue: #56 |
Can we expect this to be dealt with anytime soon? |
+1 |
2 similar comments
+1 |
+1 |
Any updates on this ? is this available ? It's not working for me for log4j2 |
@batghare the fork-of-a-fork https://github.com/DNSBelgium/log4j-jsonevent-layout works for me for log4j v2, e.g.
Also, in my case (dropping it into an already-built project (storm)) the uber-jar didn't work, likely due to https://issues.apache.org/jira/browse/LOG4J2-673, so I had to manually drop in json-smart-1.1.1.jar and commons-lang-2.6.jar., just FYI. Probably not an issue for one's own code. |
+1 |
Hello,
Logstash does not have an input plugin that works with Log4J2. When attempting to use the log4j-jsonevent-layout with an app that uses Log4J2, an error is thrown. That error is:
...contains an invalid element or attribute "layout".
There does not appear to be a workaround for getting log4j2 content into a json format that logstash can understand.
The text was updated successfully, but these errors were encountered: