
How to Use git log Formats Graphs and Filters Step by Step
Use git log formats, graphs and filters: oneline graph views, custom pretty formats, date and author filters, branch ranges, and a one-line alias.
Tag
7 posts

Use git log formats, graphs and filters: oneline graph views, custom pretty formats, date and author filters, branch ranges, and a one-line alias.

Read Docker container logs with docker logs, filter by time, set up json-file rotation with max-size and max-file, and choose another driver for production.

Log from a shell script to syslog and journald with logger, set tags and priorities, read the entries back with journalctl, and keep stdout clean for data.

Rotate logs on a schedule with logrotate: config syntax, daily or size rotation, copytruncate versus postrotate, testing with -d and how it is triggered.

Find out who changed what on a Linux system: auth logs, sudo logs, shell history limits, journalctl, package history, file mtimes and auditd rules.

Keep secrets out of CI logs: masking limits, set -x and env dumps, command-line arguments, error messages, derived values and what to do after a leak.

Use awk to parse logs and build reports: field splitting, counting by key, sums and averages, time buckets, sorted summaries and END blocks.