When attempting to push auditd logs from VMware Aria Automation (vAA) appliances to Aria Operations for Logs (vAOL) or a central log aggregator, no logs are received.
Manually appending a custom [filelog|audit_logs] block to the Log Insight agent configuration file at /etc/liagent.ini does not persist, as the changes are repeatedly overwritten and reverted by the system.
VMware Aria Automation 8.18.x
The Log Insight agent (liagent) configuration and its default data directory are strictly managed by the Aria Automation vracli service.
Any manual modifications to the agent configuration managed by this service are systematically reverted during service updates or agent restarts.
The Log Insight agent utilizes a data directory (datadir) to store configurations and certificates. The default path for version 8.18.x is /var/lib/loginsight-agent/.
Because vRA strictly manages this default directory, the agent must be redirected to a custom directory to prevent manual configurations from being overwritten.
datadir path. Run the following command: datadir=$(dirname $(readlink -e /etc/liagent.ini)) && echo $datadir /var/lib/loginsight-agent).cp -r $datadir $datadir-customgrep ExecStart /usr/lib/systemd/system/liagentd.service ExecStart=/bin/bash -c '/usr/lib/loginsight-agent/bin/liagent --daemon ').sed -i 's!.*ExecStart.*! ExecStart=/bin/bash -c '"'/usr/lib/loginsight-agent/bin/liagent --daemon --datadir $datadir-custom'"'!' /usr/lib/systemd/system/liagentd.servicegrep ExecStart /usr/lib/systemd/system/liagentd.service ExecStart=/bin/bash -c '/usr/lib/loginsight-agent/bin/liagent --daemon --datadir=/var/lib/loginsight-agent-custom').systemctl daemon-reloadsystemctl restart liagentd.service /var/lib/loginsight-agent-custom) to add any required log configurations. Because this path is unmanaged, changes will not be overwritten by vRA.