Page 1 of 1

Apache log monitor inside a container

PostPosted: Wed Aug 17, 2022 7:11 am
by PhumeleleSJose96
I have a Nagios Log server installed on ubuntu 18.04. and I can access my ubuntu system logs as per documentation. Now I want to monitor apache error and access logs, which are in docker containers. Just wanted to know the process for same. I have done following inside docker container. But somehow I am not getting apache logs. Do I need to open port? echatspin or echatrandom any other configuration required?

Installed rsyslog in docker container.
downloaded http://..*.54/nagioslogserver/scripts/setup-linux.sh
bash setup-linux.sh -s ..*.54 -p 35544 -f "/var/log/apache2/error.log" -t apache_error

Re: Apache log monitor inside a container

PostPosted: Wed Aug 17, 2022 3:19 pm
by gormank
Make sure NLS shows listening on 35544 in the configuration page.

From the apache host check with nmap that the NLS logstash port is open.

nmap -p 35544 <NLS host>

If logstash is listening, and nmap shows the port not open, something is blocking it.