{"id":14248687,"url":"https://github.com/ugosan/logshark","last_synced_at":"2026-01-15T00:34:31.965Z","repository":{"id":61824818,"uuid":"312364880","full_name":"ugosan/logshark","owner":"ugosan","description":"A command-line tool for debugging JSON logs, built in Go. Logshark integrates seamlessly with Beats and Logstash to provide real-time log analysis, featuring JSON formatting and event metrics.","archived":false,"fork":false,"pushed_at":"2022-12-13T20:47:42.000Z","size":6165,"stargazers_count":34,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-12T09:45:54.892Z","etag":null,"topics":["filebeat","json","logstash"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ugosan.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}},"created_at":"2020-11-12T18:38:53.000Z","updated_at":"2025-07-21T22:00:25.000Z","dependencies_parsed_at":"2023-01-28T15:02:27.531Z","dependency_job_id":null,"html_url":"https://github.com/ugosan/logshark","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ugosan/logshark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugosan%2Flogshark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugosan%2Flogshark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugosan%2Flogshark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugosan%2Flogshark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ugosan","download_url":"https://codeload.github.com/ugosan/logshark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugosan%2Flogshark/sbom","scorecard":{"id":907340,"data":{"date":"2025-08-11","repo":{"name":"github.com/ugosan/logshark","commit":"fee1051471ed255bf7e538d5d3932d8013e302df"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:96: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:103: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:108: update your workflow using https://app.stepsecurity.io/secureworkflow/ugosan/logshark/release.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating progrium/busybox to progrium/busybox@sha256:438fd20dc8664ce7c253e65079c08006aa52684314a83722c7f1834188119ad4","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v.0.0.3 not signed: https://api.github.com/repos/ugosan/logshark/releases/82860554","Warn: release artifact v.0.0.2 not signed: https://api.github.com/repos/ugosan/logshark/releases/60058591","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/ugosan/logshark/releases/49618406","Warn: release artifact v.0.0.3 does not have provenance: https://api.github.com/repos/ugosan/logshark/releases/82860554","Warn: release artifact v.0.0.2 does not have provenance: https://api.github.com/repos/ugosan/logshark/releases/60058591","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/ugosan/logshark/releases/49618406"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T17:48:58.903Z","repository_id":61824818,"created_at":"2025-08-24T17:48:58.903Z","updated_at":"2025-08-24T17:48:58.903Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: 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":["filebeat","json","logstash"],"created_at":"2024-08-22T00:00:52.161Z","updated_at":"2026-01-15T00:34:31.941Z","avatar_url":"https://github.com/ugosan.png","language":"Go","funding_links":[],"categories":["\u003ca name=\"text-processing\"\u003e\u003c/a\u003eText processing","Table of Contents"],"sub_categories":[],"readme":"# logshark\n\nLogshark is a debugger for JSON logs.\n\n\n\u003ckbd\u003e![](./_doc/demo.gif)\u003c/kbd\u003e\n\nLogshark works by listening for logs on an HTTP port, it mimicks the Elasticsearch protocol so as to receive data from Beats (Filebeat, Metricbeat, Heartbeat, etc.) and Logstash using the standard elasticsearch output. \n\nFeatures:\n- Terminal UI \n- Navigable list of logs \n- Highlightable, pretty printed JSON\n- 🎨 Colorful\n- Beats/Logstash integration\n- Stats such as *Events per second* and *Average size* in bytes per event - useful for calculating bulk/batch size\n\n## Download\n\nReleases [here](https://github.com/ugosan/logshark/releases)\n\n## 1) Start the server\n\n### binary\n\n```perl\n./logshark --host 0.0.0.0 --port 9200 --max 1000\n```\n\n### docker\n\n```perl\ndocker run -p 9200:9200 -it ugosan/logshark -host 0.0.0.0 -port 9200\n```\n\nYou can reach the logshark container from another container using `host.docker.internal` like `docker run --rm byrnedo/alpine-curl -v -XPOST -d '{\"hello\":\"test\"}' http://host.docker.internal:9200`\n\n### docker-compose\n\n```\ndocker-compose run -p 9200:9200 logshark -port 9200\n```\n\n```yaml\nversion: \"3.2\"\nservices:\n\n  #note you should not use \"docker-compose up\" but instead \"docker-compose run logshark sh\" since docker-compose doesnt attach to containers with \"up\". e.g. docker-compose run -p 9200:9200 logshark -port 9200\n  logshark:\n    image: ugosan/logshark\n    tty: true\n    stdin_open: true\n```\n## 2) Point your Logstash pipeline's output to it\n\nJust like a normal `elasticsearch` output:\n\n```ruby\ninput {}\n\nfilter {}\n\noutput {\n  elasticsearch {\n    hosts =\u003e [\"http://host.docker.internal:9200\"]\n  }\n  \n}   \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fugosan%2Flogshark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fugosan%2Flogshark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fugosan%2Flogshark/lists"}