diff --git a/production/README.md b/production/README.md index b51f397e4c43..b5967a33c671 100644 --- a/production/README.md +++ b/production/README.md @@ -71,11 +71,19 @@ $ go build ./cmd/promtail ``` On Linux, promtail requires the systemd headers to be installed for -Journal support. Promtail can be built with Journal support on Ubuntu -with the following commands: +Journal support. + +With Journal support on Ubuntu, run with the following commands: + +```bash +$ sudo apt install -y libsystemd-dev +$ go build ./cmd/promtail +``` + +With Journal support on CentOS, run with the following commands: ```bash -$ sudo apt install libsystemd-dev +$ sudo yum install -y systemd-devel $ go build ./cmd/promtail ```