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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...