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

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

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

Postby irfansst » Fri Jun 12, 2020 11:22 am

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
irfansst
 
Posts: 1
Joined: Fri Jun 12, 2020 11:10 am

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

Postby cdienger » Wed Jun 17, 2020 4:37 pm

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.
User avatar
cdienger
Support Tech
 
Posts: 4441
Joined: Tue Feb 07, 2017 11:26 am


Return to Community Support

Who is online

Users browsing this forum: No registered users and 26 guests