Server not sending all logs as configure.
-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
Re: Server not sending all logs as configure.
OK, so I change the port for apache_access log to send to, to the same port for syslog. From 5581 to 5544. No change, could not find any evidence that the logs were being sent. Unless it's not picked up by the NLS. How can I turn up the verbosity of the logstash log?
Thanks
Mitch
Thanks
Mitch
-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
Re: Server not sending all logs as configure.
I found how/where to kick up the logging level. Nothing from that server. Again I switched the config on that system to send to 5544, which I knows works since that is where /var/log/messages is being sent. And I am getting those. But no, nothing.... just the normal from /var/log/messages. Any ideas on where to go from here would be greatly appreciated...
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Server not sending all logs as configure.
It sounds like date / time issue.
Can we verify all machines that are participating in this have synced clocks. Ideally they are all on the same timezone however even if they are not they at least are on the same clock cycle.
Can we verify all machines that are participating in this have synced clocks. Ideally they are all on the same timezone however even if they are not they at least are on the same clock cycle.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
Re: Server not sending all logs as configure.
All good... for both working and non-working.. Thanks for the tip.. I was hoping it would be that.
Time on igapubwebcache01
Thu Jan 23 18:39:07 EST 2020
Time on igapubwebcache02
Thu Jan 23 18:39:07 EST 2020
Time on iganagiosls01
Thu Jan 23 18:39:07 EST 2020
Time on iganagioslog
Thu Jan 23 18:39:07 EST 2020
Time on igapubwebcache01
Thu Jan 23 18:39:07 EST 2020
Time on igapubwebcache02
Thu Jan 23 18:39:07 EST 2020
Time on iganagiosls01
Thu Jan 23 18:39:07 EST 2020
Time on iganagioslog
Thu Jan 23 18:39:07 EST 2020
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Server not sending all logs as configure.
In that case my normal troubleshooting technique for these issues is to go back to basics. Remove any of the extra stuff and just configure rsyslog to send the standard logs.
Confirm that it is consistently working and then extend from that.
Sometimes you need to remove all the variables.
Confirm that it is consistently working and then extend from that.
Sometimes you need to remove all the variables.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
Re: Server not sending all logs as configure.
Thanks Box293,
I have done that. Pulled everything, removed and reinstalled rsyslog. It's really strange that on the reboot yesterday morning, the previous days logs were sent from the rotated logs. I'm going to see if I can get it pulled from production rotation. It's one of the front end cache servers for the external web site. This is really messing with my stats gathering LOL. If I can to that I can play with it much easier.
If I can get it where I can reboot a few times, then I am going to do what you suggested again. Starting with the complete removal of rsyslog, reboot and go from there, one step at a time.
Thanks for the help, any more ideas would be greatly appreciated.
Later
Mitch
I have done that. Pulled everything, removed and reinstalled rsyslog. It's really strange that on the reboot yesterday morning, the previous days logs were sent from the rotated logs. I'm going to see if I can get it pulled from production rotation. It's one of the front end cache servers for the external web site. This is really messing with my stats gathering LOL. If I can to that I can play with it much easier.
If I can get it where I can reboot a few times, then I am going to do what you suggested again. Starting with the complete removal of rsyslog, reboot and go from there, one step at a time.
Thanks for the help, any more ideas would be greatly appreciated.
Later
Mitch
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Server not sending all logs as configure.
Sounds goodGhostRider2110 wrote:If I can get it where I can reboot a few times, then I am going to do what you suggested again. Starting with the complete removal of rsyslog, reboot and go from there, one step at a time.
-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
Re: Server not sending all logs as configure.
Didn't get a change to work on it over the weekend, but noticed something this morning. Seems last night, (this morning) it did get sent the the log that was rotated after rsyslog restarted. I have log entries from 0345 012620 to 0345 012720. So when rsyslog is restart for the logrotate maintenance, the rotated log is being sent.. Similar to what I saw when I did the reboot. I'll be starting the trouble shooting process this morning and update as I go.
Thanks
Mitch
Thanks
Mitch
Re: Server not sending all logs as configure.
Sounds good. Please update us if you find anything or run into any problems.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
GhostRider2110
- Posts: 193
- Joined: Thu Oct 30, 2014 8:04 am
- Location: Indiana
- Contact:
Re: Server not sending all logs as configure.
Been caught up with some fires. Still working this. Thanks