Splunk Search

Im have a question with time functions

ialletex
New Member

how do I perform a search within a 24-hour period and search hour by hour

exemple:

| gentimes start=8/13/18 increment=6h
| fields starttime starthuman
| eval epoch_time=strptime(starttime,"%s")
| eval testtime=time()

how to go through this result one at a time?

0 Karma

niketn
Legend

@ialletex seems like what you are asking is for the map command to iterate through your results of generated time and perform some search for each.

However, it would be easier for the community to assist you better if you add more details to your question like what is the problem you are trying to solve and what does the data/field on your end looks like and what is the output you are interested in?

Please mock/anonymize any sensitive information before posting the same.

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

adonio
Ultra Champion

can you elaborate? what does: "how to go through this result one at a time" means?

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...