Skip to content

auditLog ​

Command: auditLog
Category: Security
Status: Production Ready

Description ​

Review auditing configuration and audit policy metadata in SAP HANA. This command surfaces global auditing settings, policy definitions, and a summary of audit configuration status.

Syntax ​

bash
hana-cli auditLog [options]

Aliases ​

  • audit
  • auditlog

Command Diagram ​

Parameters ​

Positional Arguments ​

This command does not accept positional arguments.

Options ​

OptionAliasTypeDefaultDescription
--limit-lnumber100Maximum number of audit entries to return.
--user-ustring-Filter by audit user.
--action-astring-Filter by audited action.
--schema-sstring-Filter by schema name.
--level--lvlstringallAudit severity level. Choices: all, CRITICAL, ERROR, WARNING, INFO
--days-dnumber7Number of days to look back.

Connection Parameters ​

OptionAliasTypeDefaultDescription
--admin-abooleanfalseConnect via admin (default-env-admin.json)
--conn-string-Connection filename to override default-env.json

Troubleshooting ​

OptionAliasTypeDefaultDescription
--disableVerbose--quietbooleanfalseDisable verbose output
--debug-dbooleanfalseEnable debug output

For the runtime-generated option list, run:

bash
hana-cli auditLog --help

Examples ​

Basic Usage ​

bash
hana-cli auditLog --days 7 --level ERROR

Review audit configuration and focus on recent error-level activity.

  • systemInfo - System information overview
  • securityScan - Scan for common security vulnerabilities

See the Commands Reference for other commands in this category.

See Also ​