Splunk Enterprise

CAP_DAC_READ_SEARCH working on UF but not on HF

alex12
Engager

Hello all,

I recently discovered Linux capabilities, in particular the option CAP_DAC_READ_SEARCH from the AmbientCapabilities parameter in services, and realised it was actually implemented on Splunk UF 9.0+.

I was happy to see this included in the service of UFs, but I then found it was not enabled by default on Splunk Enterprise (I was using 9.3.1), so I attempted to create an override for the service, including the aforementioned parameter.

Unfortunately, I was unable to ingest logs for which the user running splunk did not have the permissions. Funnily enough, I tried to set some monitoring on /var/log/messages through the GUI; I was able to see the logs when selecting the sourcetype, but then I got an error "Parameter name: Path is not readable" when submitting the conf. I also get an insufficient permission message in the internal logs when forcing the monitoring of /var/log/messages via an inputs.conf.

I read on an older post that this behaviour comes from the use of an inappropriate function when checking the permissions on the file...

So my questions to the community and Splunk employees are :

  • Are capabilities in services supported for Splunk Enterprise? If so, how can I set them up? If not, will they be supported at some point?
  • How would you collect logs on a HF or standalone instance, where the user running splunk has no rights on the logs to ingest?

Thanks

Labels (2)
0 Karma

inventsekar
SplunkTrust
SplunkTrust

Hi @alex12 

As documented here 

https://docs.splunk.com/Documentation/Forwarder/9.3.1/Forwarder/Installleastprivileged

the CAP_DAC_READ_SEARCH will work only with UF (not with HF)

 

the HF installation method (regular Splunk enterprise installation)

https://docs.splunk.com/Documentation/Splunk/9.3.1/Installation/InstallonLinux

 

thanks and best regards,
Sekar

PS - If this or any post helped you in any way, pls consider upvoting, thanks for reading !
0 Karma

sainag_splunk
Splunk Employee
Splunk Employee

I believe this feature is for UF only, code changes are made only for UF.

If this helps, Upvote!!!!
Together we make the Splunk Community stronger 
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...