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 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...