Splunk Search

How to map extracted field name (e.g actual_time) with _time field?

pm2012
Loves-to-Learn

Hi SMEs, I have a unique requirement which need one of my extracted filed name = actual_time to be mapped with _time field. As while searching past 30 days data i am also getting the older data while looking at actual_time field. I think if i map actual_time with _time or by other mean i should be able to get the actual outcome. thanks in advance

Labels (3)
Tags (1)
0 Karma

glc_slash_it
Explorer

Hey!

Try this out to search for a time interval based on the actual_time. 

(your search)
| eval _time=actual_time
| search earliest=<epoch_time> latest=<epoch_time>

 

If the actual-time is not in epoch, you must convert it before the search command:

| eval _time=strftime(actual_time, "%Y-%m-%d %H:%M:%S")

 

------------
If this was helpful, some karma would be appreciated.

0 Karma
Get Updates on the Splunk Community!

Splunk Cloud | Empowering Splunk Administrators with Admin Config Service (ACS)

Greetings, Splunk Cloud Admins and Splunk enthusiasts! The Admin Configuration Service (ACS) team is excited ...

Tech Talk | One Log to Rule Them All

One log to rule them all: how you can centralize your troubleshooting with Splunk logs We know how important ...

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...