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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...