Splunk Search

Timechart and Timepicker?

jgauthier
Contributor

I am running a search like so:

sourcetype="stuff here" | timechart span=1h sum(bytes) as Total by limit=10 username useother=f

Is it possible to change the span based on a timepicker?

For instance, if timepicker is 15 minutes, then my span should be like 3 minutes. If it's 30 days, then I want the span to be 1d, etc.

Maybe I need to use a different method?

Tags (1)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

If you simply omit the span in the timechart command, it will choose an appropriate interval. Similarly, instead of specifying a span, you can specify a maximum number of bins to split, e.g. try bins=40 instead of span=1h

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

If you simply omit the span in the timechart command, it will choose an appropriate interval. Similarly, instead of specifying a span, you can specify a maximum number of bins to split, e.g. try bins=40 instead of span=1h

jgauthier
Contributor

Perfect. Thank you!

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