{"id":17226398,"url":"https://github.com/kernc/diff-logs","last_synced_at":"2025-04-14T01:11:12.279Z","repository":{"id":203433626,"uuid":"709578232","full_name":"kernc/diff-logs","owner":"kernc","description":"Shell utility for viewing differences between log files","archived":false,"fork":false,"pushed_at":"2025-01-21T07:59:20.000Z","size":24,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T15:12:24.388Z","etag":null,"topics":["bash","build-log","ci","ci-cd","continuous-integration","devops-tools","devtool","devtools","diff","logfiles","logging","logs","unix","visualize-differences"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kernc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-25T01:03:20.000Z","updated_at":"2025-02-14T02:31:27.000Z","dependencies_parsed_at":"2023-12-03T05:25:06.108Z","dependency_job_id":"e630e176-6fe3-4398-9fa8-843a6576d9f2","html_url":"https://github.com/kernc/diff-logs","commit_stats":null,"previous_names":["kernc/diff-logs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fdiff-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fdiff-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fdiff-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kernc%2Fdiff-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kernc","download_url":"https://codeload.github.com/kernc/diff-logs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804825,"owners_count":21164135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","build-log","ci","ci-cd","continuous-integration","devops-tools","devtool","devtools","diff","logfiles","logging","logs","unix","visualize-differences"],"created_at":"2024-10-15T04:16:05.813Z","updated_at":"2025-04-14T01:11:12.241Z","avatar_url":"https://github.com/kernc.png","language":"Python","readme":"`diff-logs`\n===========\n[![Build Status](https://img.shields.io/github/actions/workflow/status/kernc/diff-logs/ci.yml?branch=master\u0026style=for-the-badge)](https://github.com/kernc/diff-logs/actions)\n[![Language: shell](https://img.shields.io/badge/lang-Shell-skyblue?style=for-the-badge)](https://github.com/kernc/diff-logs)\n[![Language: Python](https://img.shields.io/badge/lang-Python-skyblue?style=for-the-badge)](https://github.com/kernc/diff-logs)\n[![Source lines of code](https://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/kernc/diff-logs/badge?filter=diff-logs.py,diff-logs$\u0026style=for-the-badge\u0026color=skyblue\u0026label=SLOC)](https://github.com/kernc/diff-logs)\n[![Script size](https://img.shields.io/github/languages/code-size/kernc/diff-logs?style=for-the-badge\u0026color=skyblue)](https://github.com/kernc/diff-logs)\n[![](https://img.shields.io/github/issues/kernc/diff-logs?style=for-the-badge)](#)\n\nA command-line utility for diff'ing log files.\n\nQuickly find diffing lines in all kinds of logs,\nnamely build/CI logs, server/container logs or any such.\nFigure out _why exactly_ the shit is failing quickly.\n\nThe script works by replacing common stochastic string [patterns],\nsuch as datetime timestamps, download speeds, temporary files,\nHTTP header values, UUIDs, hash digests etc., with known fixed\nvalues that a tool such as `diff` can then easily skip.\n\n[patterns]: https://github.com/kernc/diff-logs/blob/master/diff-logs.py\n\n\nInstallation\n------------\nFirst, check if your OS distro already provides an installable `diff-logs` package.\n\nOtherwise:\n1. Star, [download](https://github.com/kernc/diff-logs/archive/refs/heads/master.zip)\n   or clone repo.\n2. (Optional) Create a symlink in your bin-dir pointing to `diff-logs` shell script:\n   ```shell\n   mkdir -p ~/.local/bin\n   export PATH=\"~/.local/bin:$PATH\"    # Also put in .bashrc or similar\n   # Link script into your bin\n   ln -s ~/path/to/diff-logs/diff-logs ~/.local/bin/diff-logs\n   ```\n\n\nUsage\n-----\n```shell\n$ diff-logs --help\n\nUsage: diff-logs \u003c FILE1.log           # Print log file diff-friendly\n       diff-logs FILE1.log FILE2.log   # Invoke $DIFFTOOL (e.g. diff)\n```\n\n\nExamples\n--------\n### Diff two log files\n```shell\ndiff-logs FILE1 FILE2    # Invokes `diff`\n# or\nexport DIFFTOOL=meld\ndiff-logs FILE1 FILE2    # Invokes `meld`\n```\n\n### Diff-friendly-format a single log file\n```shell\ndiff-logs \u003c FILE1 \u003e FILE1.clean\n```\n\n-----\nFinally, we can diff our logs with ease! 🥳\n\nImprovements welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernc%2Fdiff-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkernc%2Fdiff-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkernc%2Fdiff-logs/lists"}