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!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...