Skip to main content

2026-05-31 · 1 min read

Line sort and dedupe for incident logs

Normalize noisy log extracts before you paste them into tickets or diff tools.

logsSREtext

Key takeaways

  • Dedupe after sorting when you need deterministic output for screenshots.
  • Strip timestamps only if your goal is hostnames—not when timing matters.

During incidents

Paste log lines, sort alphabetically, dedupe, then attach the result to the incident doc.

Follow with Diff Checker when comparing before/after config exports.

FAQ

Does this run on servers?

Text mode is local-first; paste redacted excerpts only.

Sort ascending or descending?

Pick one per ticket so reviewers can compare runs.