Knowledge Management

How do I specify a time resolution?

letharion
Engager

Normally, the time resolution adjusts itself, seemingly trying to keep the number of bars shown below some "reasonable" limit. So if I search "The last 30 days", I will get bars by the day. If I search "The last 4 hours", I will bars by the minute.

How do I adjust that? I want to have a per second resolution, but over a larger time span than just a few minutes.

Tags (1)
0 Karma
1 Solution

MuS
Legend

Hi letharion,

it depends on how you show your bars using graphs... if you're using timechart simply do something like this:

 your base search | timechart span=1sec count

this will give you for each second a bar of all event counts. If you're using chart or stats you can do something like this:

 your base search | bucket _time span=1sec | chart count over _time
 your base search | bucket _time span=1sec | stats count by _time

hope this helps ...

cheers, MuS

View solution in original post

MuS
Legend

Hi letharion,

it depends on how you show your bars using graphs... if you're using timechart simply do something like this:

 your base search | timechart span=1sec count

this will give you for each second a bar of all event counts. If you're using chart or stats you can do something like this:

 your base search | bucket _time span=1sec | chart count over _time
 your base search | bucket _time span=1sec | stats count by _time

hope this helps ...

cheers, MuS

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