Hi
I'm setting up the Beats. For each one I followed the following process:
-
Created and user called
elasticin the host -
Created a systemd unit file like this:
[Unit]
Description=Auditbeat
After=syslog.target network.target
[Service]
PIDFile=/run/auditbeat.pid
ExecStart=/u/elastic/auditbeat/auditbeat -c /u/elastic/auditbeat/auditbeat.yml
ExecStop=/bin/kill -s QUIT $MAINPID
User=elastic
Group=elastic
[Install]
WantedBy=multi-user.target
- But when I try to run Auditbeat, I get this
$ ./auditbeat -e
2020-04-29T10:41:48.012-0300 ERROR instance/beat.go:933 Exiting: 1 error: 1 error: unable to create DNS sniffer: failed creating af_packet sniffer: operation not permitted
Exiting: 1 error: 1 error: unable to create DNS sniffer: failed creating af_packet sniffer: operation not permitted
So, can I run Auditbeat as a non-root user?
What about the other Beats? Filebeat, for instance, also looks like not, if it's configured to index /var/log/messages for example...
Thank you