Splunk Search

How to specify the time range chosen on a chart's y-axis?

pstickne
Explorer

For a timechart such as " .. | timechart count", there will be an arbitrary bucket size selected depending on certain values, including the time range chosen. (To be as flexible as possible the span= option will NOT be used.)

However, this can lead to a misleading value of "y" depending on the bucket size, e.g.:
Does "y" represent the count per HOUR? Per Minute? Per Day?

How can the "y" axis be corrected to "per HOUR" for ANY bucket size automatically selected by the timechart command? Currently I've used some manual hard-coded math evals in some charts, but this feels unnecessarily complex and tedious, and relies on a fixed SPAN size.

0 Karma

DalJeanis
Legend

Try this...

 | timechart per_hour(sum(myfield)) as AvgSumPerHour
0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...