Page 1 of 1

timestamp precision

Posted: Thu Jun 25, 2020 1:50 pm
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

Re: timestamp precision

Posted: Fri Jun 26, 2020 1:57 pm
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.