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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...