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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...