{"id":16643476,"url":"https://github.com/sonots/fluent-format","last_synced_at":"2025-06-13T03:04:31.207Z","repository":{"id":56846837,"uuid":"14921965","full_name":"sonots/fluent-format","owner":"sonots","description":"A utility to format or check fluentd configuration","archived":false,"fork":false,"pushed_at":"2014-12-01T18:47:33.000Z","size":336,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-11T13:21:02.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/sonots.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-12-04T11:25:08.000Z","updated_at":"2015-09-29T02:48:40.000Z","dependencies_parsed_at":"2022-09-09T01:00:49.709Z","dependency_job_id":null,"html_url":"https://github.com/sonots/fluent-format","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/sonots/fluent-format","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonots","download_url":"https://codeload.github.com/sonots/fluent-format/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonots%2Ffluent-format/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259571641,"owners_count":22878183,"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":[],"created_at":"2024-10-12T08:08:40.952Z","updated_at":"2025-06-13T03:04:31.152Z","avatar_url":"https://github.com/sonots.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluent-format  [![Build Status](https://travis-ci.org/sonots/fluent-format.png?branch=master)](https://travis-ci.org/sonots/fluent-format)\n\nAn utility to format or check fluentd configuration\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'fluent-format'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fluent-format\n\n## Command Line Interface\n\n### Format\n\n    $ fluent-format format -c fluent.conf\n    or\n    $ fluent-format -c fluent.conf\n\nInput Example:\n\n```\n\u003csource\u003e\n     type forward\n\u003c/source\u003e\n\n   \u003cmatch test\u003e\n    type stdout\n\u003c/match\u003e\n```\n\nOutput Example:\n\n```\n\u003csource\u003e\n  type forward\n\u003c/source\u003e\n\u003cmatch test\u003e\n  type stdout\n\u003c/match\u003e\n```\n\nSee help for more options\n\n    $ fluent-format help format\n\n### Check\n\n    $ fluent-format check -c fluent.conf -p plugin_dir\n    $ echo $? # 0 or 1\n\nThis returns the status code 0 if check passed,\nand status code 1 with error messages if check failed. \n\nSee help for more options\n\n    $ fluent-format help check\n\n## As a library\n\n### Format\n\n```ruby\nrequire 'fluent-format'\n\nFile.open(path) {|config|\n  puts Fluent::Format.format(config)\n}\n```\n\nor\n\n```ruby\nrequire 'fluent-format'\n\nputs Fluent::Format.format(path)\n```\n\nUse the 2nd way when you want to exapnd `include` directive.\n\n### Check\n\n```ruby\nrequire 'fluent-format'\n\nFile.open(path) {|config|\n  Fluent::Format.check(config, plugin_dir)\n  #=\u003e Fluent::ConfigParseError or Fluent::ConfigError if failed\n}\n```\n\nor\n\n```ruby\nrequire 'fluent-format'\n\nFluent::Format.check(path, plugin_dir)\n#=\u003e Fluent::ConfigParseError or Fluent::ConfigError if failed\n```\n\nUse the 2nd way when you want to exapnd `include` directive.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\n## Licenses\n\nSee [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonots%2Ffluent-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonots%2Ffluent-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonots%2Ffluent-format/lists"}