-
Notifications
You must be signed in to change notification settings - Fork 81
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
not able to set logstashforwarder::file parameters through yaml #73
Comments
Hi, There are several plans for this module. I'll update the repo once the plans are a bit more concrete. |
Hi Richard, |
which heartbeat module? |
my apologies. I meant filebeat. https://github.com/elastic/filebeat/issues |
Ah okay. yeah its still in beta at the moment. When GA comes out it should be more stable. |
ok. no problem. I am able to achieve the functionality with the extra class. so no impediments on my side. |
I am able to define the servers through yaml as
logstashforwarder::servers: ["localhost:5043"]
but this was not possible for the logstashforwarder::file
I created the following wrapper class to enable setting the logstashforwarder::file through yaml as
logstashforwarder_wrapper::files:
'messages':
'paths': ["/var/log/messages"]
'fields':
'type': 'syslog'
class logstashforwarder_wrapper (
$files = $logstashforwarder_wrappper::params::files,
) inherits xlrelease_template::params {
create_resources('logstashforwarder::file', $files)
}
maybe you would like add this functionality to the master. I would not need an extra wrapper class and the parameters can be set through yaml
The text was updated successfully, but these errors were encountered: