SAP ASE: Route Syslog Audit Records to a Dedicated File

For SAP ASE audit records already being sent to Linux syslog, rsyslog can route messages tagged SAP_ASE_AUDIT to a dedicated file. SAP KBA 3753300 covers ASE 16.0 SP04 and 16.1.

This configures the operating-system destination. It does not enable ASE auditing or convert an existing table-based audit trail.

Add an rsyslog rule

Create a dedicated configuration file under /etc/rsyslog.d/ using the appropriate administrator privileges. For example:

sudo touch /etc/rsyslog.d/ase.conf

Add the following routing rule to that file, replacing the example output path:

if $programname == 'SAP_ASE_AUDIT' then /var/log/ase-audit.log
& stop

Review rule order and forwarding

The stop action prevents later rules from processing matching messages. Because rsyslog evaluates its configuration in order, check that this does not suppress required forwarding to your central logging system. Omit the stop action if matching messages must continue to later rules.

Check destination permissions and your retention and rotation arrangements. After reviewing the configuration, restart rsyslog:

sudo systemctl restart rsyslog

Confirm that new ASE audit events reach the intended file and any required central destination.

References

SAP Note 3753300

rsyslog: Configuration order

You May Also Like

Leave a Reply?