Dashboards & Visualizations

ダッシュボードをpdf形式でエクスポートしたところ、いくつかのグラフが正常に表示されませんでした。

hnoboru_splunk
Splunk Employee
Splunk Employee

監視用のダッシュボードを作成し、以下のように10秒ごとにリフレッシュするように設定しています。

  <refresh>10s</refresh>


ダッシュボードの情報を、pdf ファイルとしてエクスポートしたところ、いくつかのグラフが正常に表示されませんでした。
グラフの代わりに、以下のようなアドレスの一部が出力され、アクセスしたところ、User sidが出力されました。

https://127.0.0.1:8089/services/search/jobs/admin__admin__search__search8_1548139350.27149/results?c...

    {"messages":[{"type":"FATAL","text":"Unknown sid."}]}
0 Karma

hnoboru_splunk
Splunk Employee
Splunk Employee

[回答]
これはダッシュボードのリフレッシュとpdf エクスポートのタイミングにより発生しております。
ダッシュボードがリフレッシュされるとき、まずダッシュボードのサーチジョブがキャンセルされ、
その後新しいサーチが実行されます。
この現象は、pdfgenがサーチジョブを元にグラフを作成している際に、
ダッシュボードのリフレッシュが発生した場合に発生します。
これはPDF generation の制限となります。(近日中にドキュメントのアップデートを実施する予定となっております。)

https://docs.splunk.com/Documentation/Splunk/7.2.3/Viz/DashboardPDFs

[回避策]

  • リフレッシュ時間をより長い時間に設定する (タイミングによって本現象が発生する場合はございますが、頻度は少なくなります。)
  • リフレッシュ時間の設定を解除し、リアルタイムサーチを使用する *リアルタイムサーチはよりリソースを使用しますのでご注意ください。

   https://docs.splunk.com/Documentation/Splunk/7.2.3/Search/Aboutrealtimesearches

[動作]
ダッシュボード

0. ダッシュボードのリフレッシュが完了
1. リフレッシュ時間を待機
2. リフレッシュ時間が経過
3. サーチジョブのキャンセル実施(Splunkが有効なサーチを複数持つことを避けるため)
4. 新しいサーチの実行

pdfgen
a. サーチジョブ情報の検索
b.検索したサーチジョブ情報を元に、グラフを作成
c. PDFファイル作成完了

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...