chef-logstash icon indicating copy to clipboard operation
chef-logstash copied to clipboard

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

Open akshah123 opened this issue 7 years ago • 0 comments

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.

akshah123 avatar Jul 17 '17 14:07 akshah123