Alerting

Splunk Alerting

praneethlekkala
Path Finder

I am trying to create a splunk alert, which sends an email if a key value is missing.

 

host="myhost" sourcetype="access_log" "Key_Word in the access logs'"

Usually i get the log entries every 30 mins, i want to get alerted via an email if "Key_Word in the access logs" is missing from the access logs, can someone guide me on this?

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @praneethlekkala,

it's easy:

  • open the app where you want to locate your alert,
  • open search form,
  • run your search, using the time range you want in the alert (e.g. last 30 minutes),
  • click on "Save as" and then "Alert",
  • insert the infos requested in the form:
    • alert title,
    • permissions "Shared in App",
    • scheduled: "Run on cron schedule",
    • check the Time Range,
    • use the correct cron schedule: */30 * * * *
    • Number of results=0
    • Trigger once,
    • throttle (if you want to disable your alert for a period after triggering),
    • Add action:
      • Add to triggered alerts,
      • Send email,
    • Add the infos of the alert email,
    • save it.

Ciao.

Giuseppe

View solution in original post

praneethlekkala
Path Finder

Thanks!! let me try this..

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @praneethlekkala,

good for you!

Ciao and happy splunking.

Giuseppe

P.S.: Karma Points are appreciated by all the contributors 😉

praneethlekkala
Path Finder

Thanks

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @praneethlekkala,

it's easy:

  • open the app where you want to locate your alert,
  • open search form,
  • run your search, using the time range you want in the alert (e.g. last 30 minutes),
  • click on "Save as" and then "Alert",
  • insert the infos requested in the form:
    • alert title,
    • permissions "Shared in App",
    • scheduled: "Run on cron schedule",
    • check the Time Range,
    • use the correct cron schedule: */30 * * * *
    • Number of results=0
    • Trigger once,
    • throttle (if you want to disable your alert for a period after triggering),
    • Add action:
      • Add to triggered alerts,
      • Send email,
    • Add the infos of the alert email,
    • save it.

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...