Deployment Architecture

How do I avoid redundancy for a script running in a search head cluster?

charleswheelus2
Engager

Hi,

We are currently running an alarming python script on our main search head that sends an email when less data is received than expected.

We are moving to a searchhead cluster. How do I make sure the script runs once, from a live search head, without manual intervention?

Do I copy it to all 3 search heads? Will it send me 3 emails? I want to avoid this.

Thanls

0 Karma

skoelpin
SplunkTrust
SplunkTrust

The search head captain will designate a search head to run the search and execute the script upon a triggering condition. So the script will run once on the search head member which was designated to run the search

In a search head cluster, you use the deployer to deploy configurations to the search head members. They need to be in sync with each other, so its important that you don't add configs to the search head directly. Lastly, scripts have been deprecated from Splunk so you should really look into alert actions which can fire a script.

https://docs.splunk.com/Documentation/Splunk/7.0.2/DistSearch/SHCdeploymentoverview

https://docs.splunk.com/Documentation/Splunk/latest/Alert/Configuringscriptedalerts

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...