flog is a fake log generator for common log formats such as apache-common, apache error and RFC3164 syslog.
It is useful for testing some tasks which require log data like amazon kinesis log stream test.
Thanks to gofakeit 😘
sudo su
curl -fsSL https://ghproxy.com/https://github.com/wchaws/flog/blob/master/start-flog-svc.sh | bash
查看日志发生器服务
systemctl status "flog*"
日志产生目录
/var/log/apache/*.log
/var/log/json/*.log
/var/log/nested-json/*.log
/var/log/nginx/*.log
如果遇到 cp: cannot create regular file ‘/usr/bin/flog’: Text file busy
请先执行以下命令停止 flog systemd 服务后再执行 start-flog-svc.sh
systemctl stop "flog*"