Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logparser panic on reference to file in directory with restricted permissions #2906

Closed
e271828- opened this issue Jun 11, 2017 · 0 comments · Fixed by #3055
Closed

logparser panic on reference to file in directory with restricted permissions #2906

e271828- opened this issue Jun 11, 2017 · 0 comments · Fixed by #3055
Labels
bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf
Milestone

Comments

@e271828-
Copy link

2017-06-11T17:46:06Z E! Error in plugin [inputs.logparser]: open /var/log/supervisor/my_listener-stdout.log: permission denied
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0xbd861d]

goroutine 51 [running]:
github.com/influxdata/telegraf/plugins/inputs/logparser.(*LogParserPlugin).receiver(0xc42012a080, 0x0)
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/logparser/logparser.go:181 +0x6d
created by github.com/influxdata/telegraf/plugins/inputs/logparser.(*LogParserPlugin).tailNewfiles
	/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/logparser/logparser.go:167 +0x416

System info:

Telegraf v1.3.1 (git: release-1.3 f936156)

Amazon Linux

Steps to reproduce:

Add a logparser entry to a file within a directory with chmod 600 and different ownership.

@danielnelson danielnelson added bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf labels Jun 12, 2017
@danielnelson danielnelson added this to the 1.4.0 milestone Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior panic issue that results in panics from Telegraf
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants