Set permissions for file created using output plugin


(Vamshi) #1

Is there a way to set specific permissions for a file when it is created by file output plugin in logstash?

output {
  if "ERROR" == [@loglevel]{
    file {
          path => "/logs/consolidated-errors.log"
        }
    }

(Magnus B├Ąck) #2

The plugin itself has no such feature and I can't come up with another clean way of doing it either, unless it's doable by setting the umask in the init script (or equivalent)?


(system) #3