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!

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...