Problem
-
In my Output plugin I want to write all grok parse failures to a file
else if "_grokparsefailure" in [tags] { file { path => "/home/anotherAccount/testfolder/grokfailures" file_mode => 0600 } }
-
I have two servers on which I have the same configs. My file and parent folders permissions are as follows:
- My question is - with these permissions on the parent folders
.
and..
and on thegrokfailures
file, would that config work and all failures be written on disc in this file? I'm only asking proactively since my parser is working just fine at the moment and I have no failures and I prefer not to mess with it in all honesty
Also, from the Logstash doco, i don't quite understand the part about file_mode
option and it's default -1 value?
Reference - File output plugin | Logstash Reference [7.14] | Elastic
Thank you very much in advance