All Apps and Add-ons

How to run a C language script for an alert action or from search?

dailv1808
Path Finder

Hi,
I have created a alert action and call to smgSend.c file.
i compiled smgSend.c to smgSend
When I run this script manually "**/bin/smgSend "hello" 01234567789**", it works fine.
In bin directory have 2 files: smgSend.c and smgSend
content of commands.conf file in local directory below:

[smgSend]
filename = smgSend
generating = true
streaming = false
is_risky = false

i tried to run this from search:

| smgSend "hello" 01234567789

The error appear "Unknown search command 'smgsend'. "

So how can i running external C script from search, does splunk support .c script?

0 Karma

MuS
Legend

are these typos?

you wrote command.conf instead of commands.conf and filename = msgSend instead of filename = smgSend

cheers, MuS

0 Karma

dailv1808
Path Finder

Sorry, i type wrong in question.
EDITED.

0 Karma
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 ...