2 Description=promtail is the agent responsible for gathering logs and sending them to Loki.
3 Documentation=https://grafana.com/docs/loki/latest/clients/promtail/
4 Requires=network-online.target
5 After=network-online.target
9 ExecStart=/usr/bin/promtail -positions.file /var/lib/promtail/positions.yml -config.file /etc/loki/promtail.yaml
15 MemoryDenyWriteExecute=true
20 ReadWritePaths=/var/lib/promtail
24 ProtectKernelTunables=true
25 ProtectKernelModules=true
26 ProtectControlGroups=true
29 WantedBy=multi-user.target