Sorry, I missed out a minus
| inputlookup append=T lookup_march
| where time > relative_time(now(),"-30d")
| stats count as total
You need to parse the time field into an epoch time with strptime(); you can then use the epoch time for comparisons and calculations
| eval epochtime=strptime(time,"%m/%d/%Y %H:%M:%S")| where epochtime > relative_time(now(),"30d")
ITWhisperer - Thank you!
Can you please tell me also how I can do the same search, except the "time" column fields are in epoch time? In other words, how would I revise the below search?
| inputlookup append=T lookup_march
| where time > relative_time(now(),"30d")
| stats count as total
Sorry, I missed out a minus
| inputlookup append=T lookup_march
| where time > relative_time(now(),"-30d")
| stats count as total
Thank you ITWhisperer. I noticed that it might just need a minus sign, but did fully pursue.
I appreciate your help.