Export journald to JSON

Structured log export for ingestion into log aggregators

journalctl -u <service> -o json | jq '{ts: .REALTIME_TIMESTAMP, msg: .MESSAGE}'

tool
linux133 commands
tags
linuxlogs

More linux commands

  • timedatectl status && chronyc tracking

    Clock sync state, offset, and NTP source details

  • systemctl list-timers --all --no-pager

    All timers with last/next trigger times

  • ssh-copy-id -i ~/.ssh/id_ed25519.pub user@host

    Append public key to remote authorized_keys

  • rsync -avz --progress --delete src/ user@host:/dest/

    Mirror directory to remote with deletion of extra files

  • shred -vzn 1 /dev/sdb

    One-pass overwrite with zeros + verify (use hdparm ATA for NVMe)

all 133 linux commands