Logs are coming late

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Monica7
Posts: 45
Joined: Thu May 19, 2016 4:42 am

Logs are coming late

Post by Monica7 »

Hi,

I am having two servers named Server1 and Server2. Nagios log server is installed in Server1 . I want to track one of the log file which is available in Server2 from Server1 Nagios log server web interface.

I have done configuration in Server2 by following the below steps.

Nagios log Server web interface -> +Log Source -> Linux Source - > ran those steps in Server2

Nagios log server web interface -> +Log Source -> Linux files -> ran the steps (which is given) in Server2.

after configuring I am getting logs in Server1 Nagios log server web interface. But issue is I am getting logs late.

For example, If time is 05:15 in Server, I am getting 4:00 logs in Nagios log server dashboard.

So I have to wait for one hour to see 05:15 logs. Why it is taking this time.

whether I have to done time interval anywhere to track the logs instantly?

Question2:

we are having file input configuration in logstash . it is applicable for tracking the files which is available only inside the Server1? or we can track remote Server(Server2) files also in this file config. please confirm this as well
file{
path => file path to track
}
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Logs are coming late

Post by hsmith »

Are the two servers in different time zones? Is it possible the time is wrong on one of them? The logs are likely there, you'd just need to expand your search to include logs in the future.
Former Nagios Employee.
me.
Monica7
Posts: 45
Joined: Thu May 19, 2016 4:42 am

Re: Logs are coming late

Post by Monica7 »

Time stamp column which is given in dashboard is my system time .you have to look at the time in the message column and the time which is in given in Linux server.

How to expand the search to get future data
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Logs are coming late

Post by hsmith »

On a dashboard, in the upper right corner click where it says "A day ago to a few second ago"(or whatever you have it set to). Click custom, and remove where it says "Right now". You can put a future date there instead.
Former Nagios Employee.
me.
Locked