Dashboards & Visualizations

timerange rounding -1h@5m

0range
Communicator

How to round search time to 5 mins?
If i use span=5m fro timechart the time rounded to 1 minute looks awful.

Tags (1)
0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

I'd also like more details about your question. In the meantime, here's another guess: Are you annoyed by "half buckets" when your time range starts at 12:03 and it sticks those two minutes until 12:05 into a bucket, messing up counts and sums? Try adding partial=f to your timechart, it'll discard those buckets.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

I'd also like more details about your question. In the meantime, here's another guess: Are you annoyed by "half buckets" when your time range starts at 12:03 and it sticks those two minutes until 12:05 into a bucket, messing up counts and sums? Try adding partial=f to your timechart, it'll discard those buckets.

0range
Communicator

Thanks) partial is enough.

0 Karma

strive
Influencer

index=_internal earliest=-1h@h latest=-0h@h | timechart span=5m count by source

This sets span as 5m and you get 12 intervals.

If you give more details, it will be helpful to answer your question

0 Karma

strive
Influencer

You mean you need time in interval of 5 minutes

0 Karma
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 ...