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!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...