Alerting

アラートが思ったように動かない Alert does not work as expected

blaku
Explorer

cronスケジュールで結果が一定数ならメール送信を行うアラートを作成しました。
アラート画面>サーチで開くで確認した場合、欲しい値が取れています。
その状態でcronスケジュールで実行した際、値が上手く取れていません。
メールにあるView results in Splunkからサーチ画面を見に行くと結果が無い状態です。
そのあと検索ボタンを押すと結果がいくつも出てきます。

なぜこのような挙動になるのか分からないのですがどうすれば欲しい値が取得出来ますか。

Hi Splunker
I'm not good at English, so I will use Google translation

We created an alert with cron schedule.
Although there is no problem on the confirmation screen, it is impossible to obtain the desired value on the result screen after sending mail.

If you press the search button again with the same sql sentence on the result screen, you can get the value you want.

I do not know the cause, but how can I get the desired value?

0 Karma

HiroshiSatoh
Champion

アラートのサーチ文の最後に明示的に以下を追加するとうまく表示されませんか?
|fields (表示したいフィールド名をすべて記述)

0 Karma

deepashri_123
Motivator

Hey@blaku,

You could mention your fields in search in order to display them? What query are you running ? Can you share some sample and the desired output ?

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...