Splunk Search
Highlighted

Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Path Finder

I have a report scheduled to run everyday at 2:00 AM. It basically creates a line chart to show the WEB traffic in Gigabytes.
It is working perfectly and the schedule is being running, I can access it through "View Recent" link directly in SPLUNK.

The problem is that I embed this same report on a webpage, but the chart that is showing there is outdated by some days.

It is not my browser's cache, since I opened the same page on box that has never opened it.

How can I force the embed report be the same as shown in SPLUNK ?

Thanks.

Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

SplunkTrust
SplunkTrust

This seems to be a very common issue among those who use embedding. It seemingly updates at random times but that is not the case:

http://docs.splunk.com/Documentation/Splunk/6.1/Report/Embedscheduledreports

Are both computers youre accessing from behind a proxy server? If so, it could still be cache.

You should upvote this comment and file your own feature request / support ticket possibly too:
https://answers.splunk.com/answers/153158/feature-request-how-to-embed-a-dashboard-not-a-rep.html

0 Karma
Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Engager

FYI we've started a pilot with 10 reports published in a static web page. Reports are based on trivial search request, and rendered as table, pie and line chart. They were first tested in a dashboard, and changed to saved search as documented (report, save, schedule, embded, wait first schedule, copy-paste iframe, test). Scheduling is set to 1 hour for all reports.

Results :
- some reports are refreshed, and some are NOT
- in "Reports" menu, report preview is correct
- in "Settings\Search,reports,alerts", report scheduling is correct
- no error in /opt/splunk/var/log/splunk/scheduler.log

Is there something we didn't understand during configuration? Or is this a know issue?

Does anyone have any positive feedback about using the Reports feature?

PS : using splunk 6.4.0

0 Karma
Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Explorer

We too are having this problem with Splunk v6.4.1

Report is fine from the reports page, but embed link only shows the report as it was generated when it was first embeded

0 Karma
Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Splunk Employee
Splunk Employee

I suspect the issue is caused because the embedded report is looking at the oldest copy of the related search artifact, rather than the latest.

For example, if I have an embedded report named "embedtest", which is scheduled to run every 1 minute. Every minute a new search artifact is created in the $SPLUNK_HOME//var/run/splunk/dispatch directory. These may look at follows:

16 Jun 11:00 scheduler__admin__search__embedtest_at_1466071200_12
16 Jun 11:01 scheduler__admin__search__embedtest_at_1466071260_14

Now the embedded report should look at the latest search artifact "146607126014" but instead it is looking at the oldest artifact "146607120012".

As per the documentation these search artifact should exist for the time period specific in the dispatch.ttl option in the savesearches.conf file:

http://docs.splunk.com/Documentation/Splunk/6.2.9/Admin/Savedsearchesconf

However, sometimes these search artifacts are not cleared up and old ones can remain. This may explain why some of your reports are showing very old data.

In 6.3.3 it appears the embedded report looks at the newest artifact, not the oldest.

Does this explain your behavior?

Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Splunk Employee
Splunk Employee

The following bug has been opened:

SPL-122982 - Embedded reports use oldest search artifact

In Splunk 6.4 embedded report is looking at the oldest copy of the related search artifact, rather than the latest. In 6.3 the embedded report looks at the newest artifact.

Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Splunk Employee
Splunk Employee

The following bug:

SPL-122982 - Embedded report uses oldest search artifact from the history endpoint

Is now reported fixed in Splunk version 6.4.3.

Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

New Member

I'm experiencing this issue on Version 7.1.0. Is there something I'm doing wrong? I just copy pasted the embed code in a static html file. The report refreshes fine when on a splunk dashboard.

0 Karma
Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Splunk Employee
Splunk Employee

Hi, I have just checked and there appears to be a regression of this issue in 7.1.0 which has been addressed in Splunk 7.1.2.

0 Karma
Highlighted

Re: Why is an embedded report on a webpage not getting updated to reflect the same report shown in Splunk?

Path Finder

I can confirm the fix (re-fix?) in 7.1.2 resolved the issue for me - thanks!!
http://docs.splunk.com/Documentation/Splunk/7.1.2/ReleaseNotes/Fixedissues

2018-06-03
SPL-154567, SPL-154139
embedded report uses oldest search artifact from the history endpoint

0 Karma