You are helping the user parse systemd journal logs to identify recent errors and issues.
Parses systemd journal logs to identify recent errors, warnings, and critical issues. Use this to diagnose system problems, find failing services, and get actionable solutions for common errors.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillYou are helping the user parse systemd journal logs to identify recent errors and issues.
Check recent errors from current boot:
# Errors from current boot
journalctl -b -p err
# Errors and warnings
journalctl -b -p warning
# Critical and alert level messages
journalctl -b -p crit
Show errors from specific time periods:
# Last hour
journalctl --since "1 hour ago" -p err
# Last 24 hours
journalctl --since "24 hours ago" -p err
# Specific date range
journalctl --since "2025-10-25" --until "2025-10-26" -p err
# Last 100 error entries
journalctl -p err -n 100
Group errors by service/unit:
# List units with failures
systemctl --failed
# Errors from specific service
journalctl -u SERVICE_NAME -p err
# Common problematic services
journalctl -u NetworkManager -p err
journalctl -u systemd-resolved -p err
journalctl -u bluetooth -p err
Analyze error frequency:
# Count errors by message
journalctl -b -p err --no-pager | grep -oP '(?<=: ).*' | sort | uniq -c | sort -rn | head -20
# Errors per unit
journalctl -b -p err --no-pager | grep -oP '\w+\.service' | sort | uniq -c | sort -rn
Check for kernel errors:
# Kernel errors
journalctl -k -p err
# Segfaults
journalctl | grep -i "segfault"
# OOM killer events
journalctl | grep -i "killed process"
Find patterns and recurring issues:
# I/O errors
journalctl -b | grep -i "i/o error"
# Disk errors
journalctl -b | grep -i "ata.*error"
# Network errors
journalctl -b | grep -i "network.*error\|dhcp.*fail"
# GPU/graphics errors
journalctl -b | grep -i "amdgpu\|drm.*error"
Export error summary:
# Save errors to file for analysis
journalctl -b -p err --no-pager > /tmp/system-errors-$(date +%Y%m%d).log
# Create error report
cat > /tmp/error-report.txt << EOF
System Error Report - $(date)
======================================
Failed Services:
$(systemctl --failed --no-pager)
Recent Errors (last 24h):
$(journalctl --since "24 hours ago" -p err --no-pager | tail -50)
Error Summary by Service:
$(journalctl -b -p err --no-pager | grep -oP '\w+\.service' | sort | uniq -c | sort -rn)
EOF
cat /tmp/error-report.txt
Provide:
NetworkManager errors:
Bluetooth errors:
sudo systemctl restart bluetoothdmesg | grep -i bluetoothDisk errors:
/check-disk-errorsfsckGPU errors:
systemd-resolved errors:
/etc/systemd/resolved.confIf requested:
journalctl --list-bootsjournalctl -b -p err --output=short-monotonicjournalctl -b -p err -o json--no-pager for scripting and pipingjournalctl --disk-usage/var/log/journal/journalctl --vacuum-time=30d