[root@wazuh-manager ~]# filebeat setup --index-management -E setup.template.json.enabled=false
ILM policy and write alias loading not enabled.
Index setup finished.
[root@wazuh-manager ~]# systemctl daemon-reload
[root@wazuh-manager ~]# systemctl enable filebeat
Created symlink from /etc/systemd/system/multi-user.target.wants/filebeat.service to /usr/lib/systemd/system/filebeat.service.
[root@wazuh-manager ~]# systemctl start filebeat
测试filebeat是否可以连接ES
[root@wazuh-manager ~]# filebeat test output
elasticsearch: http://192.168.1.201:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: 192.168.1.201
dial up... OK
TLS... WARN secure connection disabled
talk to server... OK
version: 7.11.2