You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
foo and bar are directories aaa is a regular file bar cannot be read by telegraf user (here, it is simulated by a 000 chmod)
2. Create the file /tmp/aaa.conf with this content:
[[inputs.filecount]]
directory = "/tmp/foo/"
name = "aaa"
recursive = false
Telegraf process should return:
> filecount,directory=/tmp/foo/,host=computer count=1i 1550582182000000000
Actual behavior:
Telegraf process returns:
2019-02-19T13:17:01Z E! [inputs.filecount]: Error in plugin: open /tmp/foo/bar: permission denied
Additional info:
Since recurse is set to false, telegraf should not care about subdirectories, especially, it should not go into error.
I am still looking for a workaround.
The text was updated successfully, but these errors were encountered:
Relevant telegraf.conf:
System info:
Telegraf 1.9.4 (git: HEAD 4da8d0a)
Ubuntu 16.04
Steps to reproduce:
foo
andbar
are directoriesaaa
is a regular filebar
cannot be read by telegraf user (here, it is simulated by a 000 chmod)2. Create the file
/tmp/aaa.conf
with this content:telegraf --config /tmp/aaa.conf --test
Expected behavior:
Telegraf process should return:
> filecount,directory=/tmp/foo/,host=computer count=1i 1550582182000000000
Actual behavior:
Telegraf process returns:
2019-02-19T13:17:01Z E! [inputs.filecount]: Error in plugin: open /tmp/foo/bar: permission denied
Additional info:
Since recurse is set to false, telegraf should not care about subdirectories, especially, it should not go into error.
I am still looking for a workaround.
The text was updated successfully, but these errors were encountered: