Splunk Search

I am using the code for date but this is the time the event was created, not when it really happened. See Details

tcupp
New Member

| convert ctime(_time) AS Time timeformat="%m/%d/%y". Can "event.InventoryEventCarpet.InventoryEventCreateDateTime" be used. I can not get this field to work. The index is shopflex. Here is the dashboard: http://cimsplunk/en-US/app/Plant_WG/ols_production_report/edit

Tags (1)
0 Karma

DalJeanis
Legend

That's an internal site. we are not going to be able to look at it. Please post a non-confidential description of it.

For the most part, your answer will be:

 your search that gets some of the records
 | head 10 
 | eval myDate = event.InventoryEventCarpet.InventoryEventCreateDateTime
 | table _time myDate

See what format the EventCreateDateTime is actually in. Once you know that, you can convert it properly to an epoch date/time.

0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security(ES) 7.3 is approaching the end of support. Get ready for ...

Hi friends!    At Splunk, your product success is our top priority. With Enterprise Security (ES), we're here ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk, and empower your SOC to reach new heights! Duration: 1 hour  Prepare to ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...