Splunk Search

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

pm2012
Explorer

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 Observability Cloud | Customer Survey!

If you use Splunk Observability Cloud, we invite you to share your valuable insights with us through a brief ...

Happy CX Day, Splunk Community!

Happy CX Day, Splunk Community! CX stands for Customer Experience, and today, October 3rd, is CX Day — a ...

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...