ausearch returns "<no matches>" when executing from a cron, despite having events in the audit log

Solution Verified - Updated -

Issue

  • When executing ausearch command from a terminal, events are displayed, but not when executing the same command from a cronjob

Environment

  • Red Hat Enterprise Linux 7 and later
    • audit

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content