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
Apache log monitor inside a container
-
- Posts: 13
- Joined: Mon Feb 14, 2022 5:39 am
Apache log monitor inside a container
Last edited by PhumeleleSJose96 on Thu Aug 18, 2022 3:35 am, edited 1 time in total.
Re: Apache log monitor inside a container
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.
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.