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

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...