How to export log4j log to NLS?

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
azreenariff
Posts: 49
Joined: Tue Aug 21, 2018 7:58 am

How to export log4j log to NLS?

Post by azreenariff »

Hi Support,

Our client wants to send log4j logs from AIX server to the NLS. Can help to provide info on how to do this?

Thanks.
User avatar
kfanselow
Posts: 241
Joined: Tue Aug 31, 2021 3:25 pm

Re: How to export log4j log to NLS?

Post by kfanselow »

Hi azreenariff,

There are a couple of ways that this may be possible. The simplest way may be to route log4j to syslog if you are already sending syslog from that system to your Nagios Log Server. You should review the documentation that you have available to you but it appears there are a number of guides on how to do this.

https://www.java67.com/2020/04/how-to-s ... linux.html

The second option would be to configure a logstash input for log4j, or beats.

https://assets.nagios.com/downloads/nag ... Inputs.pdf

Thanks and Best Regards,
Keith
Locked