Linux Audit Logs
100%

System Auditing · Lesson 2

Linux Audit Logs

Learn to group Linux audit records that describe a single recorded operation.

Linux Audit can write several records about one event. One row may describe the operation while another supplies a path. Group related rows before deciding what they show.

Reading the Shared Event

The values below are abbreviated practice records from the same host and date. The number after the colon in the audit event reference helps group records with the same timestamp and event ID. These lines belong to the same event.

type=SYSCALL msg=audit(1763456400.120:42) success=yes auid=1001 euid=0
type=PATH    msg=audit(1763456400.120:42) name="/etc/journey/site.conf"

The first line gives the outcome and account fields. The path line names a file associated with the event.

Which fields let you connect the operation to the path in this example?

Simulated Linux Audit SYSCALL and PATH rows sharing the same audit event reference

Reading Two Identities

In this sample, auid is the audit login user ID and euid is the effective user ID for the action. A program can use an effective identity different from the login identity. A numeric ID identifies an account on the host. Additional records may be needed to identify the person behind it.

Which field shows the login audit identity in the sample?

Keeping the Finding Narrow

The result field reports that the recorded operation succeeded. Inspect the full event to identify the operation. To check whether the file contents changed, compare the file with a known reference.

What would help determine whether the contents differ from the approved file?

Lesson complete

You finished Linux Audit Logs

You can now use a record group to read one audit event.

  • Match records using the host and audit event reference.

  • Read the login and effective identities separately.

  • Choose a follow-up when the recorded outcome leaves a question open.

Keep your learning progress

Create a free account to save this lesson and continue learning on any device.

Create a free account
Next Lesson
Back to System Auditing