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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...