Splunk Search

How can i change the span in timechart when the timeRangePicker is change?

joy76
Path Finder

Hi Everyone!

I have a question about displaying timeline on timechart.(chart option is column)

I want to use timechart to display '1 bar = 1 hour' during the period of 24 hours for search and if the period of time is changed from 24 hours to 30 days, the bar is also changed from 1 hour to 1 day (1 bar = 1 day) as the Search App does.

How should I do?

Tags (2)

ziegfried
Influencer

You can define the maximum number of bars (called bins) in the timechart command. Choosing something like 35 should be a good catch for your needs:

... | timechart bins=35 count by foo

See http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Timechart

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...