mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-19 11:43:16 +02:00
15 lines
582 B
Plaintext
15 lines
582 B
Plaintext
![]() |
[Unit]
|
||
|
Description=Journalbeat ships systemd journal entries to Elasticsearch or Logstash.
|
||
|
Documentation=https://www.elastic.co/products/beats/journalbeat
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Environment="BEAT_CONFIG_OPTS=-c /etc/journalbeat/journalbeat.yml"
|
||
|
Environment="BEAT_PATH_OPTS=-path.home /usr/share/journalbeat -path.config /etc/journalbeat -path.data /var/lib/journalbeat -path.logs /var/log/journalbeat"
|
||
|
ExecStart=/usr/share/journalbeat/bin/journalbeat $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|