Reporting

Can you apply the current timerange to an imported savedsearch

BobM
Builder

I have a saved search that takes hours to run over all time. I would like to be able to do a subsearch of that data on a form. What I currently have is a form with a dropdown host list and TimeRangePicker. The search is :-

| savedsearch "mysearch" | search host=$host$ 

but this keeps the "all time" that the saved search ran over and not the current time range. I'd prefer not to create my own time picker and add in earliest= latest= as it complicates things and throws up a message "your time range was overridden..."

Is there a command I'm missing?

bmunson_splunk
Splunk Employee
Splunk Employee

It seems it would be better not to use a savedsearch in this case but to use summary indexing. Set up a search to add to the summary on a schedule and then run your report on that.

Depending on your search a data model may also help.

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...