Access Logstash:
管道通过 CLI 运行。
Run pipelines as logstash 普通用户,非 root。
Example:
sudo -u logstash /usr/share/logstash/bin/logstash -e "input { stdin { } } output { stdout { } }"
等待管道启动。启动后,输入内容并观察处理结果。
Important Directories:
- Config:
/etc/logstash - Data:
/var/lib/logstash - Logs:
/var/log/logstash - Binaries:
/usr/share/logstash/bin
管理 Logstash 服务:
Use systemctl 管理 Logstash 服务:
systemctl status logstash
systemctl restart logstash
systemctl stop logstash
systemctl start logstash