papertrail / remote_syslog2

To install, see "Releases" tab. Self-contained daemon for reading local files and emitting remote syslog (without using local syslogd).
http://help.papertrailapp.com/
MIT License
637 stars 157 forks source link

omit newline characters #236

Open goodale opened 2 years ago

goodale commented 2 years ago

I am using the log4j2 JSON layout withcompact="true" setting. papertrails (papertrailsapp.com) is not recognizing the data as JSON and their support folks think the issue is that remote_syslog2 is adding newline characters.

Is there a way to omit remote_syslog2 from doing this?

markdascher commented 2 years ago

After some additional research, we've determined that the log4j2 JSON situation boils down to this:

I believe Papertrail Support reached out with this new information, but please let us know if there's still any trouble.