Hello!
Could you please help with Filebeat configuration.
Now we have a group of servers with the same Linux version (Ubuntu xenial) and the same FileBeat 5.5.1.
Zabbix sometimes handles empty disk space at one server from those group.
It happens not continuously and make some troubles until I restart filebeat service manually.
size of logs per hour is about 3.5Gb.
Filebeat configuration:
filebeat.prospectors:
- input_type: log
paths:
- /var/log/nginx/access.json.log
exclude_lines: ["HEAD"]
document_type: nginx-access-cdn-json
#----------------------------- Logstash output --------------------------------
output.logstash:
hosts: ["example.com:5044"]
compression_level: 3
ssl.certificate_authorities: ["/etc/pki/tls/certs/logstash-forwarder.crt"]
logging:
level: info
LogRate config for nginx:
/var/log/nginx/*.log {
maxsize 2G
rotate 12
hourly
missingok
compress
delaycompress
create 0640 www-data adm
sharedscripts
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
fi \
endscript
postrotate
kill -USR1 $(cat /var/run/nginx.pid)
sleep 1
endscript
}