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!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...