Splunk Enterprise

How to create C# alert action?

rendie
Path Finder

Hi folks,

I need to create an alert action in C #, how can I do that? I have an alert_actions.conf that describes a Python alert action, how can I add a new alert action using C #?

[send_mail]
is_custom = 1
python.version = python3
label =  Send mail
icon_path = appIcon.png
payload_format = json
 
 
Thanks and have a nice day!
0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @rendie 

Never did C# but just a thought this might work, you might not be able to execute direct C# binaries unless you convert them to .exe or take a help of .cmd, .bat script intern call C# code. Refer - Create a custom alert action script - Splunk Documentation

---

An upvote would be appreciated and Accept the solution if this reply helps!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...