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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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