Open yangxikun opened 8 years ago
Hello logstash team, any new about this very annoying bug? Why this check?
The check is there to prevent writes to paths outside the main path given. It would be bad if, for example, Logstash let an event cause a write to /path/to/thing/../../../etc/passwd
It may be the check is too sensitive, but I am on my phone and can't easily review the code.
On Friday, August 12, 2016, Thomas Decaux notifications@github.com wrote:
Hello logstash team, any new about this very annoying bug? Why this check?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/logstash-plugins/logstash-output-file/issues/37#issuecomment-239483679, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIC6iNuo1NMVVD_F1uVSgQGytXH7oEBks5qfJY1gaJpZM4H17QZ .
Thanks you, i understand ! Maybe an option to disable it ? (Security can be achieved by linux io permissions, isint )
Le 12 août 2016 7:04 PM, "Jordan Sissel" notifications@github.com a écrit :
The check is there to prevent writes to paths outside the main path given. It would be bad if, for example, Logstash let an event cause a write to /path/to/thing/../../../etc/passwd
It may be the check is too sensitive, but I am on my phone and can't easily review the code.
On Friday, August 12, 2016, Thomas Decaux notifications@github.com wrote:
Hello logstash team, any new about this very annoying bug? Why this check?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/logstash-plugins/logstash-output-file/ issues/37#issuecomment-239483679, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIC6iNuo1NMVVD_ F1uVSgQGytXH7oEBks5qfJY1gaJpZM4H17QZ .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/logstash-plugins/logstash-output-file/issues/37#issuecomment-239502646, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKc6QQkgBGmM8hS1KTRuGkZLw1Qznl8ks5qfKeZgaJpZM4H17QZ .
logstash config:
When run
bin/logstash -f conf/nginx.conf
, some error message:The
/home/roketyyang/software/logstash-2.2.2/logs/2016/03/22/10.123.5.34.log {:level=>:warn}
is a debug output by:The
/home/roketyyang/software/logstash-2.2.2/logs/%{+yyyy/MM/dd}/ {:level=>:warn}
is a debug output by:Is there a bug with
@file_root
, or how could I fix the error?