-
Notifications
You must be signed in to change notification settings - Fork 385
Description
I created a generating search that pulls in events from a rest api. Everything works perfectly with SCP2 when testing on my dev box, but when deploying in a distributed environment I get an error from each of my indexers that it can't make a connection to the rest api (internet access blocked as intended).
Configurations tried:
- Added
local=trueto commands.conf - Added
local=trueto@configuration()within the command itself (old method) - Added
type='streaming',distributed=Falseto@configuration()(scpv2 method according to docs)
All of these still gave me errors on my indexers. If I use splunk_server=local with my command from the web ui, it does make it stay local as expected. All of this seems to run contrary to the docs which state that "By default generating commands are configured to run locally in the streams pipeline".
A side note, there appears to be some incomplete commands.conf instructions for setting up distributed options in commands.conf:
http://docs.splunk.com/DocumentationStatic/PythonSDK/1.6.0/searchcommands.html#splunklib.searchcommands.GeneratingCommand
SCP 2
- Add this configuration setting to your code
- You are good to go; no need to restart Splunk
For now I have reverted to SCP1 and local=True is working as expected.