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!

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...

Get ready to show some Splunk Certification swagger at .conf24!

Dive into the deep end of data by earning a Splunk Certification at .conf24. We're enticing you again this ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Now On-Demand Join us to learn more about how you can leverage Service Level Objectives (SLOs) and the new ...