how do i send my java based applications logs to nagios log

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
irfansst
Posts: 2
Joined: Fri Jun 12, 2020 11:10 am

how do i send my java based applications logs to nagios log

Post by irfansst »

Hi All,

Please help me here i have my own java application that writes logs into logs file now i want all the logs should go to nagios log servere
wherever my application writes the logs it should be live manner so i can set alerts
but i am not able to stream logs can you please help i am using below steps but did not work and i will to run them in background so it can read and send logs contentiously

curl -sS -O http://localhost/nagioslogserver/scripts/setup-linux.sh
sudo bash setup-linux.sh -s localhost -p 5544 -f "/home/ubuntu/*.log" -t java_logs
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: how do i send my java based applications logs to nagios

Post by cdienger »

Run "rsyslog -N 1" on the Ubuntu machine to check for errors in the rsyslog config.

I would also try running:

Code: Select all

apt-get install tcpdump
tcpdump -s 0 -i any port 5544 -nnX
This will display any data that is being sent to the NLS machine and help narrow down where the problem could be.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked