Getting Data In

Is it possible to invoke a script on forwarder as an alert post action?

Sidharda
Path Finder

I have my Splunk Enterprise running on Windows and forwarder on AIX. I have configured an alert for my desired condition.
I need to run a script that is present on my forwarder as post alert action. Is that possible to access forwarder scripts from a search head where I trigger a post script?

1 Solution

dwaddle
SplunkTrust
SplunkTrust

Well, sure - but it's not trivial. You'll have to write code. I would suggest having something that can run on your search head, and use ssh to connect back to the UF to run the script. You'll need an SSH client on your windows search head that is scriptable - you might find something like Fabric (http://www.fabfile.org/) helpful.

View solution in original post

0 Karma

dwaddle
SplunkTrust
SplunkTrust

Well, sure - but it's not trivial. You'll have to write code. I would suggest having something that can run on your search head, and use ssh to connect back to the UF to run the script. You'll need an SSH client on your windows search head that is scriptable - you might find something like Fabric (http://www.fabfile.org/) helpful.

0 Karma

Sidharda
Path Finder

Thx dwaddle,

I have written a simple script on my SH to connect to my UF and run a script on UF. I have used the PLINK (PuttyLINK) to establish the connection.

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@Sidharda - Did the answer provided by dwaddle provide a solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...