open-vault/website/content/docs/audit/syslog.mdx

57 lines
1.9 KiB
Plaintext
Raw Normal View History

---
layout: docs
page_title: Syslog - Audit Devices
description: The "syslog" audit device writes audit logs to syslog.
---
2017-09-08 02:38:47 +00:00
# Syslog Audit Device
2017-09-08 02:38:47 +00:00
The `syslog` audit device writes audit logs to syslog.
It currently does not support a configurable syslog destination, and always
2017-09-08 02:38:47 +00:00
sends to the local agent. This device is only supported on Unix systems,
and should not be enabled if any standby Vault instances do not support it.
2018-06-22 13:00:05 +00:00
~> **Warning**: Audit messages generated for some operations can be quite
large, and can be larger than a [maximum-size single UDP
packet](https://tools.ietf.org/html/rfc5426#section-3.1). If possible with your
syslog daemon, configure a TCP listener. Otherwise, consider using a `file`
backend and having syslog configured to read entries from the file; or, enable
both `file` and `syslog` so that a failure for a particular message to log
directly to `syslog` will not result in Vault being blocked.
2017-09-08 02:38:47 +00:00
## Examples
2017-09-08 02:38:47 +00:00
Audit `syslog` device can be enabled by the following command:
```shell-session
2017-09-08 02:38:47 +00:00
$ vault audit enable syslog
```
2017-09-08 02:38:47 +00:00
Supply configuration parameters via K=V pairs:
```shell-session
2017-09-08 02:38:47 +00:00
$ vault audit enable syslog tag="vault" facility="AUTH"
```
2017-09-08 02:38:47 +00:00
## Configuration
2017-09-08 02:38:47 +00:00
- `facility` `(string: "AUTH")` - The syslog facility to use.
- `tag` `(string: "vault")` - The syslog tag to use.
- `log_raw` `(bool: false)` - If enabled, logs the security sensitive
information without hashing, in the raw format.
- `hmac_accessor` `(bool: true)` - If enabled, enables the hashing of token
accessor.
- `mode` `(string: "0600")` - A string containing an octal number representing
the bit pattern for the file mode, similar to `chmod`.
- `format` `(string: "json")` - Allows selecting the output format. Valid values
are `"json"` and `"jsonx"`, which formats the normal log entries as XML.
2017-09-08 02:38:47 +00:00
- `prefix` `(string: "")` - A customizable string prefix to write before the
actual log line.