Skip to Content
Browse documentation

auditctl — Command Reference

Initialize, inspect or purge the Eenos audit database and configure daily retention.

Initialize, inspect or purge the Eenos audit database and configure daily retention.

Requirements

Run as root on the Eenos server. Choose one action. --limit applies only to list/delete. --yes is allowed only with --empty; non-interactive empty requires it, while interactive empty requires typing empty.

Usage

The following example uses the operation described below; replace example identities and paths before use:

/usr/local/eenos/scripts/auditctl --list --limit 25

Arguments and options

Argument / optionUsage and meaning
-i, --initFlag. Initialize the database and schema if needed
-l, --listFlag. List the most recent audit events
-d, --deleteFlag. Delete the oldest audit events
-e, --emptyFlag. Delete every audit event
--autopurgeFlag. Apply the configured audit retention policy
-c, --cronFlag. Install the daily audit auto-purge cron job
--limitValue: LIMIT. Parser default: 25. Number of events to list or delete (default: 25)
-y, --yesFlag. Confirm --empty without an interactive prompt

-h, --help displays this parser's help. Selectors in the same mutually exclusive group cannot be combined. The installed version remains authoritative for available options.

Operational effects

--delete removes oldest events, --empty removes all events and --autopurge applies retention. --cron installs the daily purge job. Deletion loses audit history.

Verify the result

Review the selected event count/retention policy and database result. Keep required audit records before purging.

Check operation output and the relevant service/application state. Several legacy wrappers exit successfully after logging a handler failure, so a zero shell exit status alone is not proof of completion.

Back to Administration & Internal Tools · All command-line tools