Splunk Search

Creating time search butons in a view

dannux
Path Finder

Hi Everyone,

I have created a dynamic view that display data for the last 24 hours for a particular search. Is it possible to create a series of buttons that will allow me to modify the search timeline?

Ideally I want to modify the timespan by year, month, day, hour. In the same view

Thanks,
Dan

This is the code of my view:



sourcetype="pcs_servers" | timechart span="5m" avg(zCPU_IDLE) by source
-24h

line
time
right
PCS Servers Idle CPU





sourcetype="pcs_servers" | timechart span="5m" avg(free_memory) by source
-24h

column
time
right
PCS Servers Free MeM




dannux
Path Finder

After researching I was able to find the answer I used the following solution:


Last 24 hours
True


Hope it helps somebody else

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...