logstash - Filebeat service hangs on restart -


i have weird problem filebeat

i using cloud formation run stack, , part of installing , running filebeat log aggregation,

i inject /etc/filebeat/filebeat.yml machine , need restart filebeat.

the problem filebeat hangs. , entire provisioning stuck (note if ssh machine , issue "sudo service filebeat restart myself, entire provisioning becomes unstuck , continues). tried restarting both via services section , commands section of cloudformation::init , both hang.

i havent tried via userdata thats worst possible solution it.

any ideas why?

snippets template. both these hang mentioned.

"commands" : {           "01" : {             "command" : "sudo service filebeat restart",             "cwd" : "~",             "ignoreerrors" : "false"           } } 
"services" : {           "sysvinit" : {             "filebeat" : {               "enabled" : "true",               "ensurerunning" : "true",               "files" : ["/etc/filebeat/filebeat.yml"]             }           }         } 

well, sound sort of lock.. according docs, should insert dependency file, in filebeat service, under services section, , cause filebeat service restart need.

apparently, services section supports files attribute:

a list of files. if cfn-init changes 1 directly via files block, service restarted.


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -