Lorem ipsum dolores ...
- Make sure that AuditD and Python3 is installed
- Create the file
audit2json-daemon.service
with the content below:[Unit] Description=Audit2Json Converter Daemon After=network.target [Service] Type=simple User=Benji WorkingDirectory=/path/to/your/script ExecStart=/usr/bin/python3 /path/to/your/script/auditd_json_converter.py Restart=on-failure [Install] WantedBy=multi-user.target
- Adjust the path settings according to the location of your script
- Now start the daemon with
systemctl start audit2json-daemon
. - One word of awareness: make sure that
/usr/bin/python3
fits and adjust it to your environment. In most of the caeses a "simple" python3 is enough :)