3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Splunk Email Setting with Gmail

Posted at

Splunkでのe-mail設定について

ユースケース

・アラート結果をメールで飛ばしたい
・結果をさらっとemailで飛ばしたい などなど

Splunk側での設定

1:設定 --> サーバー設定 クリック

image.png

2:サーバー設定 --> メール設定 クリック

image.png

3:メールサーバー設定 を入力

image.png
メールサーバー設定以外の項目はお好みで設定

4:検証:SPLからemailに結果を飛ばしてみる

SPL例)
index=_internal | head 1 | sendemail to=飛ばしたいemailアドレス@XXX.com format="html" server=smtp.gmail.com:587 use_tls=1
image.png
しばらくして以下のようなメールが届いていれば成功
image.png

うまくできないときのGmail側での設定

1:安全性の低いアプリの許可: 有効

https://myaccount.google.com/lesssecureapps
image.png

2:Google アカウントへのアクセスを許可

https://accounts.google.com/DisplayUnlockCaptcha
image.png
次へ を押下
image.png

以上です。

以下Answersリンク
https://answers.splunk.com/answers/716894/email-configuration-setting-is-not-working-for-smt.html

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?