{"id":18869954,"url":"https://github.com/stevedsun/go-fluentbit-conf-parser","last_synced_at":"2025-07-20T20:32:15.613Z","repository":{"id":57677448,"uuid":"487879833","full_name":"stevedsun/go-fluentbit-conf-parser","owner":"stevedsun","description":"Go package for parsering Fluentbit classic-mode configuration file.","archived":false,"fork":false,"pushed_at":"2022-05-06T08:55:17.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T17:06:09.424Z","etag":null,"topics":["fluent-bit","fluentbit","go"],"latest_commit_sha":null,"homepage":"","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/stevedsun.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}},"created_at":"2022-05-02T14:40:25.000Z","updated_at":"2023-03-05T03:47:08.000Z","dependencies_parsed_at":"2022-09-10T18:21:21.812Z","dependency_job_id":null,"html_url":"https://github.com/stevedsun/go-fluentbit-conf-parser","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stevedsun/go-fluentbit-conf-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedsun%2Fgo-fluentbit-conf-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedsun%2Fgo-fluentbit-conf-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedsun%2Fgo-fluentbit-conf-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedsun%2Fgo-fluentbit-conf-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevedsun","download_url":"https://codeload.github.com/stevedsun/go-fluentbit-conf-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevedsun%2Fgo-fluentbit-conf-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266193507,"owners_count":23890801,"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":["fluent-bit","fluentbit","go"],"created_at":"2024-11-08T05:18:15.731Z","updated_at":"2025-07-20T20:32:15.574Z","avatar_url":"https://github.com/stevedsun.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluent-Bit configuration parser for Golang\n\n![github](https://img.shields.io/badge/go-1.17-blue.svg) ![github](https://img.shields.io/badge/fluentbit-v1.9-lightblue.svg) ![github](https://img.shields.io/badge/License-MIT-green.svg)\n\nGo package for parsering [Fluentbit](https://fluentbit.io/) `.conf` configuration file.\n\n\u003e Read more: [Fluentbit Configuration Document](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/format-schema)\n\n## 🍭 Features\n\n- Support Section and Entry objects\n- Support [Commands](https://docs.fluentbit.io/manual/administration/configuring-fluent-bit/classic-mode/commands)\n- Export all entries of a section into a map object (`Section.EntryMap()`).\n\n## 📦 Install\n\n```shell\ngo get -u github.com/stevedsun/go-fluentbit-conf-parser\n```\n\n## ⌨ Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\tparser \"github.com/stevedsun/go-fluentbit-conf-parser\"\n)\n\nfunc main() {\n\tconfFile, _ := os.Open(\"fluentbit.conf\")\n\tdefer confFile.Close()\n\n\tconf := parser.NewFluentBitConfParser(confFile).Parse()\n\n\tfor _, include := range conf.Includes {\n\t\tfmt.Printf(\"@INCLUDE %v\\n\", include)\n\t}\n\n\tfor key, value := range conf.Sets {\n\t\tfmt.Printf(\"@SET %v=%v\\n\", key, value)\n\t}\n\n\tfor _, section := range conf.Sections {\n\t\tfmt.Printf(\"[%v]\\n\", section.Name)\n\t\tfor _, entry := range section.Entries {\n\t\t\tfmt.Printf(\"    %v %v\\n\", entry.Key, entry.Value)\n\t\t}\n\t}\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevedsun%2Fgo-fluentbit-conf-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevedsun%2Fgo-fluentbit-conf-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevedsun%2Fgo-fluentbit-conf-parser/lists"}