Reporting

Referencing a saved search in simple xml not returning the most recent saved search anymore

simpkins1958
Contributor

We have a simple xml dashboard that has many charts that reference saved searches that are run every night at 3am. Since upgrading to Splunk 7.1.1 when we reference the saved search in our dashboard the search that is used is NOT the most recent saved search it is the oldest. This was not the behavior in Splunk 7.0.x.

savedsearches.conf:

[DatesPrevious30Days]
run_on_startup = true
alert.track = 0
cron_schedule = 0 3 * * *
dispatch.earliest_time = -30d@d
dispatch.latest_time = @d
enableSched = 1
search = index=nmi_main source=netmotion sourcetype=nm_session \
| fields _time \
| stats min(_time) as firstTime max(_time) as lastTime \
| eval totalDays=round((lastTime-firstTime)/86400,0) \
| eval firstTime=strftime(firstTime, "%a %b %e, %Y") \
| eval lastTime=strftime(lastTime, "%a %b %e, %Y")

alt text

alt text

iwks
Explorer

I'm having this problem with SE 7.1.0. Did you ever find a solution?

0 Karma

nadlurinadluri
Communicator

I am not sure on the issue, as we are still using 6.64; but did you happen to use the below for calling the saved search and try it?
|loadjob savedsearch="owner:app:savedsearchname"

0 Karma

iwks
Explorer

I use <search ref="saved_search_name"></search> in Simple XML dashboards, so I'm not sure how I would adapt that to use the | loadjob construct.

0 Karma

nadlurinadluri
Communicator

Before applying this on the dashboard, you can try running this on the search bar, and see if it is taking the latest savedsearch result,

|loadjob savedsearch="owner:app:savedsearchname"

0 Karma
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 ...