Splunk Search

Can an alert be run from a specific Search Head in a clustered environment?

nicofantinato
Path Finder

Hi all,

we have a Splunk Enterprise clustered environment, with a cluster of 3 search heads.

For many reasons, a lookup file is updated once a day in only one of these search heads (the first one).

To update this lookup file also in the other two search heads, we set up a scheduled search with the following string:

 

 

| inputlookup my_lookup_table.csv
| outputlookup my_lookup_table.csv

 

 

Since if this search is run from a different search head than the number one the lookup is not updated, is it possible to run it always from the same search head? I know we could send the lookup via SFTP to the other search heads servers, but if possible we'd like to avoid it.

Thanks in advance.

Labels (2)
0 Karma

Azeemering
Builder


What am I missing here? If you have clustered search heads you also should have configured cluster replication. For a search head cluster to function properly, its members must all use the same set of search-related configurations. 

https://docs.splunk.com/Documentation/Splunk/8.1.0/DistSearch/HowconfrepoworksinSHC

But if you want to run a search from a specific search head you could theoretically configure all the other search heads to only run ad hoc searches. ‌‌In server.conf add the following 😂

[shclustering]
adhoc_searchhead = true

0 Karma

nicofantinato
Path Finder

Hi Azeemering. Yep, cluster replication is configured, but if you copy a lookup file under $SPLUNK_HOME/etc/apps/app_name/lookups it is updated only on that specific search head, replication is done only if click Save button from web console... or at least this is the behaviour we observed in our environment.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The SHC captain decides which member will run each scheduled search.  There is no provision for overriding that decision.

How is the lookup file updated in the first place?  Could that utility also update the other SHC members?

---
If this reply helps you, Karma would be appreciated.
0 Karma

nicofantinato
Path Finder

Hi richgalloway. 

"The SHC captain decides which member will run each scheduled search.  There is no provision for overriding that decision." that's what we were afraid of.

The lookup comes form a curl command, a script launches the command once a day in only one of the search heads. Security guys want us to do this way.

0 Karma
Get Updates on the Splunk Community!

Monitoring MariaDB and MySQL

In a previous post, we explored monitoring PostgreSQL and general best practices around which metrics to ...

Financial Services Industry Use Cases, ITSI Best Practices, and More New Articles ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Splunk Federated Analytics for Amazon Security Lake

Thursday, November 21, 2024  |  11AM PT / 2PM ET Register Now Join our session to see the technical ...