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!

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