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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...