Getting Data In

Splunk UF monitoring logs that is not accessible to is underlying user

MrYanYan
Engager

Hi Fellas!

I just wanted to ask if it would be possible for a Splunk UF to monitor logs that is not accessible to its underlying user.

For example, I am running my Splunk UF instance under the splunk user and I am try to capture data from files under the directory /var/logs/appservicename/*.log which is owned by root user. Given the I have the correct configuration at inputs.conf and outputs.conf, will the data be transmitted to my indexer instance?

 

Labels (3)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @MrYanYan,

if the user thet you user to run Splunk hasn't the right to read the files in a folder, you cannot do it obviously!

The only ways are:

  • insert the splunk user in the root group,
  • temporary create a copy of those files in another folder accessible from splunk user and then delete them after few minutes.

Ciao.

Giuseppe

View solution in original post

venkatasri
SplunkTrust
SplunkTrust

@MrYanYan  Splunk user must be able to read the file owned by root user to monitor the file.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @MrYanYan,

if the user thet you user to run Splunk hasn't the right to read the files in a folder, you cannot do it obviously!

The only ways are:

  • insert the splunk user in the root group,
  • temporary create a copy of those files in another folder accessible from splunk user and then delete them after few minutes.

Ciao.

Giuseppe

MrYanYan
Engager

Got it @gcusello , I just cant find an article that would support this observation of mine.

Thank you! :😄

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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...