lusis / chef-logstash

Semi-official Logstash cookbook
Other
271 stars 353 forks source link

logrotate config has invalid path of just "*.log" #485

Open akshah123 opened 7 years ago

akshah123 commented 7 years ago

Logrotate file that is generated has invalid path of *.log instead of /opt/logstash/<instance_name>/log/*.log

Here is the generated file:

"*.log" {
  daily
  create 664 logstash logstash
  rotate 10
  missingok
  notifempty
  compress
  copytruncate
  postrotate
  service logstash_server restart > /dev/null
  endscript
}

The problem might be that logstash setup is using logstash_files parameter instead of log_file.