[英]Auto restart Logstash on crash on ubuntu 12.04
I have an elk cluster that is mostly very happy and well configured, but everyone now and then one of my users does something horrible to my logs (creates a single log line that is several gigs) and crashes logstash. 我有一个麋鹿集群,大多数情况下都非常满意并且配置良好,但是我的每个用户时不时地对我的日志进行一些可怕的操作(创建一个包含数次演出的日志行)并使logstash崩溃。 If I manually restart logstash it will usually log an error for this line and move on to the next line.
如果我手动重新启动logstash,通常会为此行记录一个错误,然后移至下一行。
I'm trying to set logstash to auto reboot after a crash. 我正在尝试将Logstash设置为崩溃后自动重启。 My installation is using an init.d file to configure the service.
我的安装使用init.d文件配置服务。 Reading through a bunch of ubuntu forums most people seem to recommend migrating the init.d to an upstart init config file rather than creating and playing configuring an inittab file.
通过阅读大量的ubuntu论坛,大多数人似乎建议将init.d迁移到新贵的init配置文件中,而不是创建并播放配置inittab文件。
Does anyone have experience / a recommendation on this? 有人对此有经验/建议吗? I'm running, logstash 2.1.3-1
我正在运行,logstash 2.1.3-1
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.