Page 1 of 1

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

Posted: Fri Jun 12, 2020 11:22 am
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

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

Posted: Wed Jun 17, 2020 4:37 pm
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.