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

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

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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...