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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...