Logstash cheat sheet: Difference between revisions

Line 471: Line 471:
[https://www.elastic.co/guide/en/beats/libbeat/5.0/upgrading-1-to-5.html Upgrading from 1.x to 5.x]
[https://www.elastic.co/guide/en/beats/libbeat/5.0/upgrading-1-to-5.html Upgrading from 1.x to 5.x]


filebeat を停止する。
*filebeat を停止する。


設定ファイルを更新スクリプトを起動する。
*設定ファイルを更新スクリプトを起動する。
<syntaxhighlight lang="bash" enclose="div">
<syntaxhighlight lang="bash" enclose="div">
sudo apt-get install filebeat
sudo apt-get install filebeat
Line 481: Line 481:




私は filebeat.yml を /etc/logstash に置いているので、/etc/default/filebeat を変更する。
*私は filebeat.yml を /etc/logstash に置いているので、/etc/default/filebeat を変更する。
<syntaxhighlight lang="text" enclose="div">
<syntaxhighlight lang="text" enclose="div">
DAEMON_ARGS="-c /etc/logstash/filebeat.yml -path.home /usr/share/filebeat -path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs /var/log/filebeat"
DAEMON_ARGS="-c /etc/logstash/filebeat.yml -path.home /usr/share/filebeat -path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs /var/log/filebeat"
</syntaxhighlight>
</syntaxhighlight>


filebeat を起動する。
*filebeat を起動する。
<syntaxhighlight lang="text" enclose="div">
<syntaxhighlight lang="text" enclose="div">
ERR State for /var/log/hoge.log should have been dropped, but couldn't as state is not finished.
ERR State for /var/log/hoge.log should have been dropped, but couldn't as state is not finished.