Splunk Search

timechart span in saved search

Splunk Employee
Splunk Employee

Is there a way to pass a timechart span variable to a saved search being called from a drop down? Is there a way to pass it strictly through the xml?

0 Karma



No. If you are using a saved search you can't pass variables to it.

However, if you convert the saved search to a macro, then call the macro from your xml with a Search module rather than a SavedSearch module you get the behavior that you are looking for.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud | Unified Identity - Now Available for Existing Splunk ...

Raise your hand if you’ve already forgotten your username or password when logging into an account. (We can’t ...

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...