Splunk Search

Retrieve a list of all the Time and group all similar times as 1 row

cmak
Contributor

I would like to get a list of all the timestamps in my data.
They are stored in a field called time.

Normally I would use
| top time

However, I would like to group all times within approximately 10 seconds as 1 selection.
Maybe choose the average time as the value of this group.

Thanks

Tags (3)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee

You should be able to use the "bucket" search command. e.g., if you time is in seconds:

... | bucket time span=10 | top time
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...