I have a vault-consul cluster of 5 nodes
2 vaults and 3 consul backend
Here is my vault configuration
backend "consul" {
path = "vault/"
}
listener "tcp" {
tls_cert_file = "/etc/consul.d/ssl/crt.pem"
tls_key_file = "/etc/consul.d/ssl/key.pem"
}
telemetry {
disable_hostname = false
}
and my consul config looks like this
{
"server": false,
"datacenter": "Vikingsforlife",
"data_dir": "/var/consul",
"ca_file": "/etc/consul.d/ssl/ca.pem",
"cert_file":"/etc/consul.d/ssl/crt.pem",
"key_file":"/etc/consul.d/ssl/key.pem",
"ui_dir": "/home/consul/dist",
"log_level": "DEBUG",
"enable_syslog": true,
"start_join": [ "10.43.166.153", "10.43.188.160","10.43.134.75","10.43.171.35"],
"telemetry": {
}
}
When i enable audit backend to syslog
"vault audit-enable syslog tag="vault" facility="AUTH"
i get ------------> Successfully enabled audit backend 'syslog' with path 'syslog'!
Path Type Description Options
syslog/ syslog facility=AUTH tag=vault
but when i check the syslog destination, i do not see any audit entries
However, when i send enable a file path
vault audit-enable file file_path=/tmp/vault_audit.log
i can see these entries in the destination -------->{"time":"2018-03-06T13:14:33Z","type":"request","auth":{"client_token":"","accessor":"","display_name":"","policies":null,"metadata":null},"request":{"id":"d94d724d-c8c2-e860-bad9-1c54a018491d","operation":"update","client_token":"","client_token_accessor":"","path":"auth/cert/login","data":null,"remote_address":"XX.XX.X.X","wrap_ttl":0,"headers":{}},"error":""
Am i missing something?
i would have written the logs to /var/log/ but i keep getting permission denied. What do i need to do to make this show up in syslog?