Could an expert help me understand why Vault audit logs are being written in the following files ?
syslog, messages and auth.log.
No config file suggests or has any mention of these log files.
Apparently i think during the vault init ( this is a inherited setup) the audit log should have been to stdout.
It sounds like you have configured audit logs be written to syslog.
Once written to syslog it is out of Vaultās control which files the messages are written to - message routing is controlled by the syslog daemonās configuration.
It is not uncommon for Linux distributions to ship default syslog configurations which duplicate messages to different filesā¦ sadly, IMO.
My personal preference is to disable Vault audit via syslog and send it directly to a file.
Please use the vault audit list command to inspect your current audit setup within Vault.
Yes, but before you do, double-check the file audit method is actually working, lest you lock yourself out of Vault (Vault refuses to serve any requests if every configured audit method is unable to log).
vault audit list -detailed will show you the existing configuration.
I have a setup of 3 machines for vault and consul and it is running in a cluster mode.
Do i disable the audit on syslog/ on all nodes or its enough for one node.