Filebeat

DevOps ELK评论1,857字数 533阅读1分46秒阅读模式

启动脚本

cd /lib/systemd/system
vim filebeat.service
[Unit]
Description=filebeat server daemon
Documentation=/data/app/filebeat-7.13.2-linux-x86_64/filebeat -help
Wants=network-online.target
After=network-online.target

[Service]
User=centos
Group=centos
Environment="BEAT_CONFIG_OPTS=-c /data/app/filebeat-7.13.2-linux-x86_64/config/filebeat.yml"
ExecStart=/data/app/filebeat-7.13.2-linux-x86_64/filebeat $BEAT_CONFIG_OPTS
Restart=always

[Install]
WantedBy=multi-user.target

chmod 755 filebeat.service 
systemctl enable filebeat.service
systemctl start filebeat.service

DevOps
  • 本文由 发表于 2022年5月5日 14:37:19
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
  • Filebeat
EFK集群[案例] ELK

EFK集群[案例]

Elasticsearch集群配置信息 硬件配置信息 机器名/节点名 IP 内存 cpu 磁盘 us...
评论  0  访客  0

发表评论