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!

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 ...