Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

using elasticsearch-logstash puppet module

$
0
0
I have a working puppet master/client setup on two vms. I need to use [elasticsearch-logstash](https://forge.puppetlabs.com/elasticsearch/logstash) puppet module to ensure that the puppet client restarts logstash once a change is detected in logstash.conf file in puppet master. I have added the following in the puppet master's site.pp and I am sure puppet agent is loading the module. node 'puppetclient.localdomain' { include logstash } I think I've to use *restart_on_change => true* setting but I'm not sure where. Is it in the **init.pp** file in logstash module? I have specified the input conf file location in **logstash/manifests/configfile.pp** which looks like logstash::configfile { 'configname': content => template('path/to/config.file') } I'm using logstash as a service on ubuntu vm. Ideally the scenario should be, once I manually change the conf file on puppetmaster vm, the client should get notified and restart logstash. How do I achieve that? My logstash conf file looks like input { stdin {} } filter { grok { match => { "message" => "%{COMMONAPACHELOG}" } } } output { stdout { codec => rubydebug } }

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>