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!

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...