Skip to content

How to Search Log Files

How to Check and Make Sense of Logs on Different Operating Systems

Section titled “How to Check and Make Sense of Logs on Different Operating Systems”

If you need to go back to the guide, click * Cyber Incident Response Guide*

Go to Settings > Privacy > Analytics & Improvements.

Section titled “Go to Settings > Privacy > Analytics & Improvements.”

Select Analytics Data to view system and app logs.

Section titled “Select Analytics Data to view system and app logs.”

Look for entries such as sysdiagnose or stacks+appName, indicating app crashes or system issues.

Section titled “Look for entries such as sysdiagnose or stacks+appName, indicating app crashes or system issues.”
Section titled “Search for terms like privacy, location, or permission to find logs related to privacy settings changes.”

Check for any entries with daemon or process indicating background activities.

Section titled “Check for any entries with daemon or process indicating background activities.”

Tap Build number seven times to enable Developer Options.

Section titled “Tap Build number seven times to enable Developer Options.”

Go to Settings > System > Developer options.

Section titled “Go to Settings > System > Developer options.”

Scroll to Debugging and select Take bug report or Log viewer.

Section titled “Scroll to Debugging and select Take bug report or Log viewer.”

Look for frequent app crashes or unexpected system behavior in the logs.

Section titled “Look for frequent app crashes or unexpected system behavior in the logs.”

Identify any unusual network activities or connection attempts.

Section titled “Identify any unusual network activities or connection attempts.”

Check for logs indicating changes in security settings or permissions granted to unfamiliar apps.

Section titled “Check for logs indicating changes in security settings or permissions granted to unfamiliar apps.”

Look for repeated attempts to access secure features or data without authorization.

Section titled “Look for repeated attempts to access secure features or data without authorization.”

Press the Windows key + R to open the Run dialog box.

Section titled “Press the Windows key + R to open the Run dialog box.”
Section titled “Look for Error or Warning Logs Related to Security”

Sort the logs by Event ID, Level, or Source.

Section titled “Sort the logs by Event ID, Level, or Source.”
  • 4624 (successful logon),
  • 4625 (failed logon),
  • 4648 (explicit login).

Look for repeated failed login attempts from the same source IP.

Section titled “Look for repeated failed login attempts from the same source IP.”

Look for logon attempts from unfamiliar locations or at unusual times.

Section titled “Look for logon attempts from unfamiliar locations or at unusual times.”

Look for logs indicating changes to security settings or software.

Section titled “Look for logs indicating changes to security settings or software.”

Look for logs indicating new software installations or changes to existing software.

Section titled “Look for logs indicating new software installations or changes to existing software.”

Launch the Console application from the Utilities folder within the Applications folder.

Section titled “Launch the Console application from the Utilities folder within the Applications folder.”
Section titled “Look for Error or Warning Logs Related to Security”
Section titled “Check logs related to security software such as antivirus or firewall.”

Search for logs with keywords like error or warning.

Section titled “Search for logs with keywords like error or warning.”

Look for repeated failed logon attempts from the same source IP.

Section titled “Look for repeated failed logon attempts from the same source IP.”

Look for logon attempts from unfamiliar locations or at unusual times.

Section titled “Look for logon attempts from unfamiliar locations or at unusual times.”

Check logs indicating changes to security settings or software.

Section titled “Check logs indicating changes to security settings or software.”

Look for logs indicating new software installations or changes to existing software.

Section titled “Look for logs indicating new software installations or changes to existing software.”
Section titled “Look for Error or Warning Logs Related to Security”

sudo grep -E 'error|warning' /var/log/auth.log to view security logs.

sudo getent passwd | grep '/home' | cut -d: -f1 to see all users with a home directory.

sudo getent passwd | cut -d: -f1 to see all users, even those without a home directory.

Look for repeated failed login attempts from the same source IP.

Section titled “Look for repeated failed login attempts from the same source IP.”

Look for logon attempts from unfamiliar locations or at unusual times.

Section titled “Look for logon attempts from unfamiliar locations or at unusual times.”

Check logs indicating changes to security settings or software.

Section titled “Check logs indicating changes to security settings or software.”

Look for logs indicating new software installations or changes to existing software.

Section titled “Look for logs indicating new software installations or changes to existing software.”