Log4j and syslogappender

前端 未结 2 874
攒了一身酷
攒了一身酷 2021-01-18 01:42

I have a java application using log4j SyslogAppender (facility=USER) and I can see using tcpdump on port 514 that my application is sending intended log message as a datagra

相关标签:
2条回答
  • 2021-01-18 02:28

    Remote logging was not enabled in syslog. Weird, because it still opens and listens on 514. Once I started with syslog -r, everything started logging.

    0 讨论(0)
  • 2021-01-18 02:42

    Maybe this will help: http://wiki.loggly.com/log4j

    It's just an example set up with using SyslogAppender. Just ignore the part about forwarding it to Loggly.

    0 讨论(0)
提交回复
热议问题