Getting Data In

Splunkのメッセージにカスタムメッセージを登録する方法

Splunk_Shinobi
Splunk Employee
Splunk Employee

Splunkの画面右上にあるメッセージ部分に、独自のメッセージを登録する方法を教えて下さい。

設定→ユーザーインターフェイス→掲示板メッセージ からマニュアルで登録可能なのは理解してますが、
プログラム的に、例えばアラートと組み合わせる等ができるようにしたいです。

REST APIなどで操作する方法のサンプルがあれば助かります。

0 Karma
1 Solution

melonman
Motivator

以下のmessage エンドポイントを利用していただければメッセージの登録が可能です。

curl -k -u admin:changed https://localhost:8089/services/messages \
-d severity="warn" \
-d name="警告情報" \
-d value="性能情報を確認してください"

alt text

ご参考
https://answers.splunk.com/answers/318696/how-can-i-showdisplay-alerts-on-the-messages-tab-a.html

View solution in original post

0 Karma

melonman
Motivator

以下のmessage エンドポイントを利用していただければメッセージの登録が可能です。

curl -k -u admin:changed https://localhost:8089/services/messages \
-d severity="warn" \
-d name="警告情報" \
-d value="性能情報を確認してください"

alt text

ご参考
https://answers.splunk.com/answers/318696/how-can-i-showdisplay-alerts-on-the-messages-tab-a.html

0 Karma
Get Updates on the Splunk Community!

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

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...