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
SplunkTrust
SplunkTrust

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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...