Socket Audit Device
socket audit device writes to a TCP, UDP, or UNIX socket.
Warning: Due to the nature of the underlying protocols used in this device there exists a case when the connection to a socket is lost a single audit entry could be omitted from the logs and the request will still succeed. Using this device in conjunction with another audit device will help to improve accuracy, but the socket device should not be used if strong guarantees are needed for audit logs.
Enable at the default path:
$ vault audit enable socket
Supply configuration parameters via K=V pairs:
$ vault audit enable socket address=127.0.0.1:9090 socket_type=tcp
(string: "")- The socket server address to use. Example
(bool: false)- If enabled, logs the security sensitive information without hashing, in the raw format.
(bool: true)- If enabled, enables the hashing of token accessor.
(string: "0600")- A string containing an octal number representing the bit pattern for the file mode, similar to
(string: "json")- Allows selecting the output format. Valid values are
"jsonx", which formats the normal log entries as XML.
(string: "")- A customizable string prefix to write before the actual log line.