cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 209 Views

Auditd Log Rule

Write the command that will define an auditd rule, that will record an event
each time the /var/log/messages file is accessed.  

When defining the rule, use "message_file_access" as the key.

 

 

Trevor "Red Hat Evangelist" Chandler
Labels (3)
1 Reply
  • 179 Views

auditctl -w /var/log/messages -p rwa -k message_file_access 

 

if you would like to make this audit rule to be permanently configured then add it to the below file.

/etc/audit/rules.d/audit.rules

Join the discussion
You must log in to join this conversation.