{"id":16788652,"url":"https://github.com/breml/logstash-config","last_synced_at":"2026-03-10T14:31:12.933Z","repository":{"id":21883084,"uuid":"94186279","full_name":"breml/logstash-config","owner":"breml","description":"logstash-config provides a parser and abstract syntax tree (AST) for the Logstash config format, written in Go","archived":false,"fork":false,"pushed_at":"2025-12-11T21:13:39.000Z","size":364,"stargazers_count":48,"open_issues_count":3,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T01:55:53.199Z","etag":null,"topics":["config","configuration","golang","golang-library","grammar","logstash","parsing"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/breml.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-06-13T07:55:48.000Z","updated_at":"2025-12-11T21:13:40.000Z","dependencies_parsed_at":"2023-11-07T17:46:22.356Z","dependency_job_id":"36f469ed-ab46-4379-a981-f90ae9b38214","html_url":"https://github.com/breml/logstash-config","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/breml/logstash-config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Flogstash-config","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Flogstash-config/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Flogstash-config/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Flogstash-config/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/breml","download_url":"https://codeload.github.com/breml/logstash-config/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Flogstash-config/sbom","scorecard":{"id":252102,"data":{"date":"2025-08-11","repo":{"name":"github.com/breml/logstash-config","commit":"16cd5262dee0f1f28f6dd9f0990079fc9b205e59"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Maintained","score":3,"reason":"4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3","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":-1,"reason":"Found no human activity in the last 14 changesets","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"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":"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:14: update your workflow using https://app.stepsecurity.io/secureworkflow/breml/logstash-config/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/breml/logstash-config/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/breml/logstash-config/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/breml/logstash-config/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/breml/logstash-config/test.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.5.3 not signed: https://api.github.com/repos/breml/logstash-config/releases/49736024","Warn: release artifact v0.5.2 not signed: https://api.github.com/repos/breml/logstash-config/releases/49452599","Warn: release artifact v0.5.1 not signed: https://api.github.com/repos/breml/logstash-config/releases/47887728","Warn: release artifact v0.5.0 not signed: https://api.github.com/repos/breml/logstash-config/releases/45957597","Warn: release artifact v0.5.3 does not have provenance: https://api.github.com/repos/breml/logstash-config/releases/49736024","Warn: release artifact v0.5.2 does not have provenance: https://api.github.com/repos/breml/logstash-config/releases/49452599","Warn: release artifact v0.5.1 does not have provenance: https://api.github.com/repos/breml/logstash-config/releases/47887728","Warn: release artifact v0.5.0 does not have provenance: https://api.github.com/repos/breml/logstash-config/releases/45957597"],"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 'master'"],"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T08:43:56.784Z","repository_id":21883084,"created_at":"2025-08-17T08:43:56.784Z","updated_at":"2025-08-17T08:43:56.784Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30337176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"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":["config","configuration","golang","golang-library","grammar","logstash","parsing"],"created_at":"2024-10-13T08:18:36.316Z","updated_at":"2026-03-10T14:31:12.910Z","avatar_url":"https://github.com/breml.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# logstash-config : parser and abstract syntax tree for [Logstash](https://www.elastic.co/logstash/) config files\n\n[![Test Status](https://github.com/breml/logstash-config/workflows/Test/badge.svg)](https://github.com/breml/logstash-config/actions?query=workflow%3ATest)\n [![Go Report Card](https://goreportcard.com/badge/github.com/breml/logstash-config)](https://goreportcard.com/report/github.com/breml/logstash-config)\\\n[![GoDoc](https://pkg.go.dev/badge/github.com/breml/logstash-config)](https://pkg.go.dev/github.com/breml/logstash-config) [![License](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](LICENSE)\n\n## Overview\n\nThe Go package config provides a ready to use parser for Logstash ([github](https://github.com/elastic/logstash)) configuration files.\n\nThe basis of the grammar for the parsing of the Logstash configuration format is the original [Logstash Treetop grammar](https://github.com/elastic/logstash/blob/master/logstash-core/lib/logstash/config/grammar.treetop) which could be used with only minor changes.\n\nlogstash-config uses [pigeon](https://github.com/mna/pigeon) to generate the parser from the PEG (parser expression grammar). Special thanks to Martin Angers ([mna](https://github.com/mna)).\n\nThis package is currently under development, no API guaranties.\n\n## Install\n\n```bash\ngo get -t github.com/breml/logstash-config/...\n```\n\n## Usage\n\n### mustache\n\n`mustache` is a command line tool that allows to syntax check, lint and format Logstash configuration files. The name of\nthe tool is inspired by the original Logstash Logo ([wooden character with an eye-catching mustache](https://www.elastic.co/de/blog/high-level-logstash-roadmap-is-published)).\n\nThe `check` command verifies the syntax of Logstash configuration files:\n\n```shell\nmustache check file.conf\n```\n\nThe `lint` command checks for problems in Logstash configuration files.\n\nThe following checks are performed:\n\n* Valid Logstash configuration file syntax\n* No comments in exceptional places (these are comments, that are valid by the Logstash configuration file syntax, but\n  but are located in exceptional or uncommon locations)\n* Precence of an `id` attribute for each plugin in the Logstash configuration\n\nIf the `--auto-fix-id` flag is passed, each plugin gets automatically an ID. Be aware, that this potentially reformats\nthe Logstash configuration files.\n\n```shell\nmustache lint --auto-fix-id file.conf\n```\n\nWith the `format` command, mustache returns the provided configuration files in a standardized format (indentation,\nlocation of comments). By default, the reformatted file is print to standard out. If the flag `--write-to-source`\nis provided, the Logstash config files are reformatted in place.\n\n```shell\nmustache format --write-to-source file.conf\n```\n\nUse the `--help` flag to get more information about the usage of the tool.\n\n## Rebuild parser\n\n1. Get and install [pigeon](https://github.com/mna/pigeon).\n2. Run `go generate` in the root directory of this repository.\n\n## Author\n\nCopyright 2017-2021 by Lucas Bremgartner ([breml](https://github.com/breml))\n\n## License\n\n[Apache 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreml%2Flogstash-config","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbreml%2Flogstash-config","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbreml%2Flogstash-config/lists"}