Page 1 of 1

feature request : time periods

Posted: Tue Sep 29, 2020 4:14 pm
by benhank
If I search for certain log results from say Monday to Friday I get my results.
But I have no way of searching for results from Monday to Friday, but only during the hours of 5pm to 6am.
For example.
I search NLs for "syslog" and hit the "7d" time period
Then I create a filter "errors"
now I will see all "syslog" messages that contained the term "errors" over the last 7 days.
I run to my boss and say ok here are all the errors that happened in the last 7 days.
he says "good, but I only want to see the errors that occurred over the last 7days from the hours of 5pm to 6am."
Can this feature be added to NLS, maybe as a filter or as an addition to the time picker?
Thanks guys!

Re: feature request : time periods

Posted: Wed Sep 30, 2020 12:21 pm
by mbellerue
Thank you for the feature request! I will put this in for you.

In order to try to solve the immediate problem, assuming we're looking at Windows event logs as an example, one of the fields is EventTime. You might consider a Grok filter that breaks up EventTime into a date field, and a time field. Then you should be able to use 2 different filters, one to specify the date range, and one to specify the time range.

Re: feature request : time periods

Posted: Wed Sep 30, 2020 1:36 pm
by benhank
say that's a good Idea! can you do that with syslogs too?

Re: feature request : time periods

Posted: Thu Oct 01, 2020 9:22 am
by mbellerue
For syslog, it is grabbing the timestamp field. I think timestamp may be different based on the Linux distro that the log files are coming from. For example, I have an Ubuntu server sending logs to Log Server, and the timestamp field shows "Oct 1 09:18:05" That's 2 spaces between Oct and 1, where it will only be one space when we hit a two digit date, like Oct 15. Other distros sending their logs in might just show you the Unix time stamp, in which case, you'll need to convert that to something human readable, and then get it broken out into 2 different fields.

Re: feature request : time periods

Posted: Fri Oct 02, 2020 8:23 am
by benhank
ok thanks you can lock it up

Re: feature request : time periods

Posted: Fri Oct 02, 2020 4:35 pm
by benjaminsmith
ok thanks you can lock it up
Closing this out. Have a great weekend!