Splunk Search

In a timechart, how can I display the chosen bucket size?

jgc94131
Explorer

I'm letting timechart choose the proper bucket size, but I want that size to be displayed somewhere. I'd like to be able to have the chosen bucketsize appear in a legend so that when you look at a graph you can understand the Y scale.

0 Karma

somesoni2
Revered Legend

See this run anywhere sample. You should see the span in duration format (1h=01:00:00, 1d=1+00:00:00)

index=_internal | timechart count | delta _time as span | eval span="span=".tostring(span,"duration") | eval {span}=0 | fields - span
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...