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

not able to set logstashforwarder::file parameters through yaml #73

Open
ltutar opened this issue Oct 28, 2015 · 6 comments
Open

not able to set logstashforwarder::file parameters through yaml #73

ltutar opened this issue Oct 28, 2015 · 6 comments

Comments

@ltutar
Copy link

ltutar commented Oct 28, 2015

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

@electrical
Copy link

Hi,

There are several plans for this module.
One is to update it to make it a bit more usable, but Logstash Forwarder is also being replaced by filebeat ( https://www.elastic.co/blog/weekly-beats-first-filebeat-release )

I'll update the repo once the plans are a bit more concrete.

@ltutar
Copy link
Author

ltutar commented Oct 28, 2015

Hi Richard,
I wanted to use logstash-forwarder because it is stable. I saw some performance issues/bugs in heartbeat puppet module. I wanted to wait before using it.

@electrical
Copy link

which heartbeat module?

@ltutar
Copy link
Author

ltutar commented Oct 28, 2015

my apologies. I meant filebeat. https://github.com/elastic/filebeat/issues

@electrical
Copy link

Ah okay. yeah its still in beta at the moment. When GA comes out it should be more stable.
Building the puppet module for the different beats is still in the planning.
I'll discuss internally, but i think we won't be doing much work on this module further except bug fixes.

@ltutar
Copy link
Author

ltutar commented Oct 28, 2015

ok. no problem. I am able to achieve the functionality with the extra class. so no impediments on my side.

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