Splunk Search

Compare Current date with field Date

dlnewman
Loves-to-Learn

I am trying to compare the current date with the lastInformTime I have tried | eval but nothing seems to work. 

index="device_list" pppUsername=* provRecordStatus=Succeeded
| eval timenow=now()
| spath lastInformTime
| search lastInformTime>=timenow
| dedup macAddress, serialNumber
| table ipAddress, serialNumber, lastInformTime, pppUsername, macAddress

The _time that is brought in during the import does not compare with any date in the export. I am not sure where Splunk is getting it from. Is there a way to set the _time to the lastInformTime? TIA

Labels (1)
0 Karma

to4kawa
Ultra Champion

| eval _time=lastInformTime

or

| rename lastInformTime as _time

0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...