savant: logstash is part of the adm group, and the files are adm only, but when i run the logstash agent it puts warnings in the logs saying it cant read em
St0rmSh4dow joined the channel
saurajeetd has quit
savant
adm:adm?
kubes joined the channel
rap424
philsturgeon: what are the permissions on the parent directory?
Title: Droplr Screenshot on 2013-07-31 at 13.01.49.png (at d.pr)
savant
so the group is the right one
what happens if you change the user to adm
rap424
philsturgeon: I usually just "setfacl -m g:logstash:r" on the file, which says give the logstash group read permissions
philsturgeon
rap424: ahh so instead of adding logstash to the adm group and letting that do the work, i should set this on each of the logs i want it to read?
rap424
philsturgeon: correct, and setting any parent directories "setfacl -m g:logstash:rx" this worked for me when I had this problem
philsturgeon: but doing the above shouldn't be necessary on just /var/log
losh has quit
Jippi has quit
DanGarthwaite has left the channel
datenbrille has quit
philsturgeon
rap424: thats really tough to work in with my chef setup. it makes me sad that even though logstash is in the right group its unable to read it
savant
woot people are using logstash/kibana at seatgeek
its becoming useful!
thanks to our philipcristiano's circus integration
whack
woo!
rap424
philsturgeon: I have never worked with chef, so I have no suggestions there.
philsturgeon
savant: circus? is he opsopsopsopsopsopsing again?
rap424: nothing chef specific, i just want one command to let logstash work in the adm group (and have it actually work) instead of have to list out every single file i want it to read manually spread across multiple nodes. your way works, but its tough to do chef-style.
rap424
philsturgeon: does the logstash user have the adm as a primary group?
philsturgeon
rap424: secondary (i think?)
JasonG_ joined the channel
josephholsten joined the channel
whack
you can use newgrp to setgid to another group you're in
whack: yeah every time. fills up logs with {:timestamp=>"2013-07-31T17:05:17.302000+0000", :message=>"failed to open /var/log/nginx/kapture-api3-error.log: Permission denied - /var/log/nginx/kapture-api3-error.log", :level=>:warn}
Title: Droplr Screenshot on 2013-07-31 at 14.11.24.png (at d.pr)
philsturgeon
its not doing much
if i restart logstash_agent to make it do anything, its got a diff pid of course
MartinCleaver joined the channel
MartinCleaver has quit
MartinCleaver joined the channel
Alssi has quit
eper
presuming sudo -u logstash cat /var/log/nginx/kapture-api3-error.log - works fine so its some weird issue and permission denied is not file system permissions
philsturgeon
eper: yeah thats what im confused about. that user can read the file, but logstash says that user cant read the file
Alssi joined the channel
eper
find it weird strace is not producing output
could you not start it with strace
philsturgeon
eper: sorry? not start it?
nemish
philsturgeon: its the permissions of the file
0640
philsturgeon
nemish: i dont know if thats true. the user CAN read the file, but logstash says it cant