{"id":20510305,"url":"https://github.com/frobware/bpfman-pod-log-defluffer","last_synced_at":"2026-04-16T21:04:52.622Z","repository":{"id":252990268,"uuid":"842116595","full_name":"frobware/bpfman-pod-log-defluffer","owner":"frobware","description":"Pod log noise reduction tool.","archived":false,"fork":false,"pushed_at":"2024-08-13T18:12:20.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T05:09:12.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frobware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-13T17:48:03.000Z","updated_at":"2024-08-13T18:12:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"db67704b-abd8-4767-b57b-a3fc357b821e","html_url":"https://github.com/frobware/bpfman-pod-log-defluffer","commit_stats":null,"previous_names":["frobware/bpfman-pod-log-defluffer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frobware/bpfman-pod-log-defluffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fbpfman-pod-log-defluffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fbpfman-pod-log-defluffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fbpfman-pod-log-defluffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fbpfman-pod-log-defluffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frobware","download_url":"https://codeload.github.com/frobware/bpfman-pod-log-defluffer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frobware%2Fbpfman-pod-log-defluffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31904080,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T20:28:55.893Z","updated_at":"2026-04-16T21:04:52.582Z","avatar_url":"https://github.com/frobware.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bpfman-pod-log-defluffer\n\n## Description\n\n`bpfman-pod-log-defluffer` is a command-line tool designed to improve the readability of JSON log entries generated by the `bpfman` operator and daemon.\n\n## Purpose\n\n`bpfman-pod-log-defluffer` was created to address the challenge of interpreting dense, unformatted logs which often appear as a giant wall of text. This tool helps to make logs more accessible and easier to understand.\n\n## Features\n\n- **Enhanced Readability:** Outputs each key-value pair on a new line, making `bpfman` logs easier to scan and interpret.\n- **Compact Format Option:** Use the `-s` flag to condense the output into a single line, stripping out JSON meta characters like braces, brackets, and commas for a streamlined view.\n- **Sorted Log Entries:** Fields in log entries are sorted case-insensitively to further enhance readability.\n\n## Installation\n\nTo install `bpfman-pod-log-defluffer`, use the `go install` command.\n\n```bash\ngo install github.com/frobware/bpfman-pod-log-defluffer@latest\n```\n\nThe binary will be placed in your `$GOPATH/bin` directory.\n\n## Usage\n\n### Processing daemon logs\n\n```sh\noc logs -n bpfman bpfman-daemon-vgwcd -c bpfman-agent | bpfman-pod-log-defluffer\n```\n\n```console\n2024-08-13T13:03:36Z info setup: \"Waiting for active connection to bpfman\"\n\n2024-08-13T13:03:36Z info setup: \"starting Bpfman-Agent\"\n\n2024-08-13T13:03:36Z info controller-runtime.metrics: \"Starting metrics server\"\n\n2024-08-13T13:03:36Z info controller-runtime.metrics: \"Serving metrics server\"\n        bindAddress: 127.0.0.1:8174\n        secure: false\n\n2024-08-13T13:03:36Z info: \"starting server\"\n        addr: [::]:8175\n        name: health probe\n\n2024-08-13T13:03:36Z info: \"starting server\"\n        addr: [::]:6060\n        name: pprof\n\n2024-08-13T13:03:36Z info: \"Starting EventSource\"\n        controller: xdpprogram\n        controllerGroup: bpfman.io\n        controllerKind: XdpProgram\n        source: kind source: *v1alpha1.XdpProgram\n\n2024-08-13T13:03:36Z info: \"Starting EventSource\"\n        controller: tcprogram\n        controllerGroup: bpfman.io\n        controllerKind: TcProgram\n        source: kind source: *v1alpha1.TcProgram\n\n2024-08-13T13:03:36Z info: \"Starting EventSource\"\n        controller: xdpprogram\n        controllerGroup: bpfman.io\n        controllerKind: XdpProgram\n        source: kind source: *v1alpha1.BpfProgram\n```\n\n### Processing operator logs\n\n```sh\noc logs -c bpfman-operator -n bpfman bpfman-operator-f967f7657-w28vq | bpfman-pod-log-defluffer\n```\n\n```console\n2024-08-13T09:32:11Z    INFO    setup   Discovering APIs\n\n2024-08-13T09:32:11Z    INFO    setup   detected platform version\n        PlatformVersion: v1.29.2\n\n2024-08-13T09:32:11Z    INFO    setup   starting manager\n\n2024-08-13T09:32:11Z    INFO    controller-runtime.metrics      Starting metrics server\n\n2024-08-13T09:32:11Z    INFO    controller-runtime.metrics      Serving metrics server\n        bindAddress: 127.0.0.1:8174\n        secure: false\n\n2024-08-13T09:32:11Z    INFO    starting server\n        addr: [::]:8175\n        name: health probe\n\nI0813 09:32:11.127177       1 leaderelection.go:250] attempting to acquire leader lease bpfman/8730d955.bpfman.io...\n\nI0813 09:32:11.135745       1 leaderelection.go:260] successfully acquired lease bpfman/8730d955.bpfman.io\n\n2024-08-13T09:32:11Z    DEBUG   events  bpfman-operator-f967f7657-w28vq_27460b5f-97a2-4ccc-a1c9-fd92f43e0e5e became leader\n        object.apiVersion: coordination.k8s.io/v1\n        object.kind: Lease\n        object.name: 8730d955.bpfman.io\n        object.namespace: bpfman\n        object.resourceVersion: 568\n        object.uid: 4dc169c4-d769-410c-9760-88c507fb9e25\n        reason: LeaderElection\n        type: Normal\n\n2024-08-13T09:32:11Z    INFO    Starting EventSource\n        controller: configmap\n        controllerGroup:\n        controllerKind: ConfigMap\n        source: kind source: *v1.ConfigMap\n\n2024-08-13T09:32:11Z    INFO    Starting EventSource\n        controller: fexitprogram\n        controllerGroup: bpfman.io\n        controllerKind: FexitProgram\n        source: kind source: *v1alpha1.FexitProgram\n\n2024-08-13T09:32:34Z    DEBUG   updateCondition()\n        controller: xdpprogram\n        controllerGroup: bpfman.io\n        controllerKind: XdpProgram\n        existing conds[0].lastTransitionTime: 2024-08-13T09:32:34Z\n        existing conds[0].message: Waiting for Program Object to be reconciled to all nodes\n        existing conds[0].reason: ProgramsNotYetLoaded\n        existing conds[0].status: True\n        existing conds[0].type: NotYetLoaded\n        name: go-xdp-counter-example\n        namespace:\n        new cond: ReconcileError\n        reconcileID: bd3030d8-731a-4388-b57e-7f849b0ad397\n        XdpProgram.name: go-xdp-counter-example\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fbpfman-pod-log-defluffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrobware%2Fbpfman-pod-log-defluffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrobware%2Fbpfman-pod-log-defluffer/lists"}