timestamp precision

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
gsin
Posts: 1
Joined: Tue May 12, 2020 9:54 am

timestamp precision

Post by gsin »

We recently installed NagiosLS and it is working well.
I added a log source and noticed that my log entries were returned out of order.
I seems that the timestamp (eg 2020-06-25T13:07:21.000-04:00) isn't as precise as the original source (eg 2020-06-25 13:07:21,153)
How can I reconfigure it to get more precise timestamps?

Thanks

-Sean
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: timestamp precision

Post by cdienger »

The precision can't be improved on the @timestamp field but you could configure NLS to store the addition precision values in a new field which would make it sortable. It would require a custom filter which is covered in https://assets.nagios.com/downloads/nag ... ilters.pdf. Feel free to provide an example of a complete log line here too if you need assistance making the filter.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked