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 477: Line 479:
sudo /usr/share/filebeat/scripts/migrate_beat_config_1_x_to_5_0.py filebeat.yml
sudo /usr/share/filebeat/scripts/migrate_beat_config_1_x_to_5_0.py filebeat.yml
</syntaxhighlight>
</syntaxhighlight>
:設定ファイルを更新スクリプトを起動する。
 


私は filebeat.yml を /etc/logstash に置いているので、/etc/default/filebeat を変更する。
私は filebeat.yml を /etc/logstash に置いているので、/etc/default/filebeat を変更する。