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
Get Updates on the Splunk Community!

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...