-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
Hi!
Trying to create a logstash agent that runs on my Ubuntu 12.04 servers that ships to my Ubuntu 14.04 server. I encounter no issues with 14.04 -> 14.04, but all my 12.04 boxes encounter this error:
{:timestamp=>"2014-06-17T15:11:22.823000-0600", :message=>"failed to open /var/log/nginx/access.log: Permission denied - /var/log/nginx/access.log", :level=>:warn}
{:timestamp=>"2014-06-17T15:11:22.830000-0600", :message=>"failed to open /var/log/nginx/error.log: Permission denied - /var/log/nginx/error.log", :level=>:warn}
{:timestamp=>"2014-06-17T15:11:22.823000-0600", :message=>"failed to open /var/log/auth.log: Permission denied - /var/log/auth.log", :level=>:warn}
{:timestamp=>"2014-06-17T15:11:22.825000-0600", :message=>"failed to open /var/log/php5-fpm.log: Permission denied - /var/log/php5-fpm.log", :level=>:warn}
The permissions on these files are the same:
-rw-r----- 1 www-data adm
And I have added logstash to the adm group via usermod -a -G adm logstash, but to no effect. I have also modified the init.d script to LS_GROUP=adm from LS_GROUP=logstash, but also to no effect. My configuration also ships everything to redis if that makes any difference:
input {
file {
path => [ "/var/log/auth.log" ]
type => "syslog"
}
file {
path => [ "/var/log/php5-fpm.log"]
type => "php5-fpm"
}
file {
path => [ "/var/log/nginx/*.log"]
type => "nginx"
}
}
output {
redis {
host => '<redacted>'
data_type => 'list'
key => 'logstash'
}
}
Metadata
Metadata
Assignees
Labels
No labels