summarylogtreecommitdiffstats
path: root/auditbeat.service
diff options
context:
space:
mode:
Diffstat (limited to 'auditbeat.service')
-rw-r--r--auditbeat.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/auditbeat.service b/auditbeat.service
new file mode 100644
index 000000000000..af7cef417e4e
--- /dev/null
+++ b/auditbeat.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Audit the activities of users and processes on your system.
+Documentation=https://www.elastic.co/products/beats/auditbeat
+Wants=network-online.target
+After=network-online.target
+
+[Service]
+
+Environment="BEAT_LOG_OPTS=-e"
+Environment="BEAT_CONFIG_OPTS=-c /etc/auditbeat/auditbeat.yml"
+Environment="BEAT_PATH_OPTS=-path.home /usr/share/auditbeat -path.config /etc/auditbeat -path.data /var/lib/auditbeat -path.logs /var/log/auditbeat"
+ExecStart=/usr/bin/auditbeat $BEAT_LOG_OPTS $BEAT_CONFIG_OPTS $BEAT_PATH_OPTS
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target