Hello,
I found in latest auditbeat version 7.7.0 that auditbeat output file is created with permission 640 even if I set output file permission to 644.
Those permissions are pre-umask. This is why it becomes 0640. The logger creates the file with 0644, but then the OS applies the processes umask to that mode value. The process has an 027 umask most likely.
I see there was a change in https://github.com/elastic/beats/pull/14119 to make the Beat set its own umask. So since the file output doesn't do an explicit chmod on the file you'll never get the configured permissions. This seems like a bug to me since users lose control of the permissions since they cannot control the process umask anymore.
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.