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"
}
}
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"
}
}
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)?
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.