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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...