Dashboards & Visualizations

サーチ実行時のイベントハンドリング

hokari
Engager

ダッシュボード内にfieldset(input type=“text”)を設置し、入力した文字列を条件に追加してサーチを実行させています。

このサーチイベント実行をキャッチして、Javascript内で追加の処理を行いたいのですが、このイベントハンドリングの方法を教えてください。

melonman
Motivator

時間が随分立ってしまいましたが、以下ご参考までに一般的な回答として記載しておきます。

ダッシュボードロード時にテキストボックに対して何か前処理させたい場合には、
アッシュボード内のInputに対してidを振っておいて、
外部のJavaScriptを呼び出すという感じになります。

https://answers.splunk.com/answers/173877/

さらにサーチ実行時に特定の処理を行わせる場合には、
search Managerを設定する必要がありますが、
以下のサンプルコードを参照いただくとよろしいかと思います。

http://dev.splunk.com/view/SP-CAAAEU7

0 Karma

splunkbase_japa
Splunk Employee
Splunk Employee

English:

"Currently I have a view with a text input and several panels. I would like to add a customized behavior to the view. for example, when a user start typing something in a text, all the chart and search result previously displayed should be reset.. etc etc"

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

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