...
|
...
|
@@ -2,13 +2,13 @@ |
|
|
# handlers file for filebeat
|
|
|
|
|
|
- name: stop filebeat
|
|
|
shell: ps aux|grep filebeat-"{{ group }}".yml|grep -v grep|head -n1|awk '{print $2}'|xargs -i kill -9 {}
|
|
|
shell: ps aux|grep filebeat-"{{ config_group }}".yml|grep -v grep|head -n1|awk '{print $2}'|xargs -i kill -9 {}
|
|
|
|
|
|
- name: start filebeat
|
|
|
shell: nohup /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat-"{{ group }}".yml -path.data /usr/share/filebeat/bin/data/"{{ group }}" -path.logs /usr/share/filebeat/bin/logs/"{{ group }}"&
|
|
|
shell: nohup /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat-"{{ config_group }}".yml -path.data /usr/share/filebeat/bin/data/"{{ config_group }}" -path.logs /usr/share/filebeat/bin/logs/"{{ config_group }}"&
|
|
|
|
|
|
- name: restart filebeat
|
|
|
shell: ps aux|grep filebeat-"{{ group }}".yml|grep -v grep|head -n1|awk '{print $2}'|xargs -i kill -9 {} ; nohup /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat-"{{ group }}".yml -path.data /usr/share/filebeat/bin/data/"{{ group }}" -path.logs /usr/share/filebeat/bin/logs/"{{ group }}"&
|
|
|
shell: ps aux|grep filebeat-"{{ config_group }}".yml|grep -v grep|head -n1|awk '{print $2}'|xargs -i kill -9 {} ; nohup /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat-"{{ config_group }}".yml -path.data /usr/share/filebeat/bin/data/"{{ config_group }}" -path.logs /usr/share/filebeat/bin/logs/"{{ config_group }}"&
|
|
|
|
|
|
- name: restart filebeat-base
|
|
|
shell: ps aux|grep filebeat-base.yml|grep -v grep|head -n1|awk '{print $2}'|xargs -i kill -9 {} ; nohup /usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat-base.yml -path.data /usr/share/filebeat/bin/data/base -path.logs /usr/share/filebeat/bin/logs/base& |
...
|
...
|
|