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.

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

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...