How to get Splunk alerts triggered

date
Aug 28, 2022
slug
get-splunk-alerts-triggered
status
Published
tags
Tutorial
Splunk
summary
type
Post

Create an Alert

  1. Add data as Monitor and browse your application log file.
    1. notion image
       
      notion image
  1. Review and start search.
  1. Save that search as Alert.
    1. notion image
      Now You will get configuration window, configure as your need.
      notion image
  1. Configure Trigger Actions.
    1. Add trigger actions
      Add trigger actions
       
      Add email address
      Add email address
  1. Save the configuration and got an alert.
    1. notion image

Create App Passcode for Authentication

  • For Gmail Users:
      1. Go to your Google Account.
      1. Select Security.
      1. Under “Signing in to Google”, select App Passwords. You may need to sign in.
        1. If you don’t have this option, you must set up 2-Step Verification first.
      1. Select Other and assign name “Splunk“.
      1. Click Generate and copy the 16 character Passcode.
        1. You will use this App Passcode to configure the email settings in Splunk.
  • For Yahoo Users:

Configure the email settings in Splunk

  1. Navigate to Email Settings.
    1. notion image
       
      notion image
  1. Email Settings
    1. notion image
      • Mail host: Provide the smtp server details and port
        • smtp.gmail.com:587 for Gmail
          smtp.mail.yahoo.com:587 for Yahoo
      • Email Security: Enable TLS
      • User name: Provide your personal mail ID
      • Password: Provide your personal mail password / App PASSCODE
        • Here we need to understand few things.
          The personal mail account could have multi factor authentications. Combinations of password and OTP etc.. This could reject Splunk to use the mail account we had assigned. So we could assign an App Passcode for authentication and things made easier.

Trigger the alert

  1. Take actions you set which will trigger the alert.
    1. In my case, I will send a bad request to login with an username that does not exist.
  1. Refresh the Alerts page, check Trigger History.
    1. notion image
  1. Check your email.
    1. notion image
  1. Check Triggered Alerts.
    1. notion image
      notion image

References

 

© Foy Wan 2022 - 2025