Skip to content

Commit

Permalink
doc: add haproxy logging to stdout
Browse files Browse the repository at this point in the history
Add info on how to configure HAProxy to log to stdout.
  • Loading branch information
jcmoraisjr committed Jun 7, 2024
1 parent 9523d32 commit da4edd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/content/en/docs/configuration/keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -2480,6 +2480,11 @@ Logging configurations.
* `syslog-length`: The maximum line length, log lines larger than this value will be truncated. Defaults to `1024`.
* `syslog-tag`: Configure the tag field in the syslog header to the supplied string.

The HAProxy process can also send logs to stdout, instead of an external syslog endpoint or a syslog sidecar, by following the steps below:

* Configure `syslog-endpoint` as `stdout` and `syslog-format` as `raw`
* From v0.12 and newer, configure HAProxy to run as a sidecar, see the [example page]({{% relref "../examples/external-haproxy" %}})

See also:

* https://cbonte.github.io/haproxy-dconv/2.2/configuration.html#3.1-log
Expand Down

0 comments on commit da4edd9

Please sign in to comment.