Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor files with foreman #41

Open
LordBrain opened this issue May 14, 2015 · 2 comments
Open

Monitor files with foreman #41

LordBrain opened this issue May 14, 2015 · 2 comments

Comments

@LordBrain
Copy link

I have a foreman instance setup and am having problems telling log stash what files to monitor. I am able to set the server and certificate using overrides within foreman, but for the life of me I can not figure out how to set what log files to monitor. Has that been encountered before?

@LordBrain
Copy link
Author

Never mind. I figured it out. In your other puppet classes you need to add the files. So you have to do something like this:

import 'logstashforwarder'
logstashforwarder::file { 'apache':
paths => [ '/var/log/apache/access.log' ],
fields => { 'type' => 'apache' },
}
(like it says in the doc)

I was hopping there was a way to have some default files added to the logstashforwarder class itself.

@electrical
Copy link

@blee1170 i hope that some day you can assign a hash of resources you want to monitor, but for now its not possible. sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants