Closed mruepp closed 1 year ago
@mruepp Thank you for reporting this issue.
Is there a targetrelease for this bug?
Hi. I'm running into the same bug with salt 2019.2.0 (Fluorine). Any idea when it will be addressed?
Another 2019.2.0 user here with the exact same issue. Any workarounds?
So, For the record. my two cents on this one. I don't think this is possible. splunk would not make a great master_job_cache
. splunk isn't a database that can be used to fetch data from in small amounts or making lots of requests against. both functionality that a master_job_cache needs to do.
I can see merit for adding event_returner
functionality. but not a full master_job_cache
, or ext_job_cache
.
see https://docs.saltstack.com/en/latest/ref/returners/ for a list of functions needed for each type of returner.
Ah yes. I just tried to list recent jobs and couldn't. I removed the ext_job_cache: splunk
declaration and I was able to list my jobs. So your assessment is spot on.
I can see merit for adding
event_returner
functionality. but not a fullmaster_job_cache
, orext_job_cache
.
@whytewolf - Would this need to be configured to run on the master or would this need to be in a pillar for each minion? My hope is the former. It would be much easier for me to receive data to Splunk from a single server (saltmaster) rather than having to whitelist traffic from individual minions.
An event_returner
would be set up on the master.
As per @whytewolf 's comments splunk is not a valid use case for master_job_cache
, but there was event return capability added to the splunk returner here: https://github.com/saltstack/salt/pull/61150 so I will go ahead and close this as resolved.
Description of Issue/Question
We configure a splunk returner on the master with master job cache. This is the config file in master.d, no config for the minion - as described here:
When running local on salt master we get this in master log:
sudo salt-call test.ping --return splunk
When running this on salt master:
sudo salt 'salt.dev*' test.ping --return splunk
This is the output on the salt cli:And this is the master log output:
Output of curl:
Setup
CentOS Linux release 7.6.1810 (Core) Linux devs0241 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Versions Report
salt 2018.3.3 (Oxygen) Master/Minion