Alerting

How to test Splunk alerts?

spiced
New Member

I configured an alert when a VPN connection is established from an IP that is located abroad. Now I would like to test if the alert works as expected. What is the best way of doing this? Can I for example copy a raw VPN login event, change the source IP, mark the event as alerttestevent and add it to Splunk to test the alert?

Can this be automated somehow, i.e. when I adjust an alert I want to easily retest that everything still works as expected? I'm thinking about something like unit tests for Splunk alerts.

0 Karma

ckoltuk
Engager

You can use the Eventgen App to generate events. Take a look this might be your answer.
https://splunkbase.splunk.com/app/1924/

0 Karma

spiced
New Member

Thank you for the response, I'll take a closer look at the Eventgen App.

0 Karma

anthonymelita
Contributor

Along the lines of your original idea to copy an event and modify it. You could do that and use | collect command to write it back to your index.
https://docs.splunk.com/Documentation/Splunk/8.0.2/SearchReference/Collect

0 Karma
Get Updates on the Splunk Community!

Advanced Splunk Data Management Strategies

Join us on Wednesday, May 14, 2025, at 11 AM PDT / 2 PM EDT for an exclusive Tech Talk that delves into ...

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...