mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2026-02-16 14:29:16 +00:00
ansible playbooks for retailor.io infrastructure
This commit is contained in:
18
roles/filebeat-laravel/templates/filebeat-laravel.service.j2
Normal file
18
roles/filebeat-laravel/templates/filebeat-laravel.service.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=Filebeat sends log files to Logstash or directly to Elasticsearch.
|
||||
Documentation=https://www.elastic.co/beats/filebeat
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
UMask=0027
|
||||
Environment="GODEBUG='madvdontneed=1'"
|
||||
Environment="BEAT_LOG_OPTS="
|
||||
Environment="BEAT_CONFIG_OPTS=-c /etc/filebeat/filebeat-laravel.yml"
|
||||
Environment="BEAT_PATH_OPTS=--path.home /usr/share/filebeat --path.config /etc/filebeat --path.data /var/lib/filebeat-laravel --path.logs /var/log/filebeat"
|
||||
ExecStart=/usr/share/filebeat/bin/filebeat --environment systemd $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user