{"id":13566072,"url":"https://github.com/ansoni/fluent-plugin-json-schema-filter","last_synced_at":"2025-04-03T23:31:02.272Z","repository":{"id":56847010,"uuid":"58607663","full_name":"ansoni/fluent-plugin-json-schema-filter","owner":"ansoni","description":"Fluentd plugin to ensure that an inbound record validates to a well-defined schema","archived":false,"fork":false,"pushed_at":"2017-07-05T06:00:13.000Z","size":12,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T18:21:50.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/ansoni.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":"2016-05-12T04:30:35.000Z","updated_at":"2024-10-01T23:38:18.000Z","dependencies_parsed_at":"2022-08-31T18:51:59.782Z","dependency_job_id":null,"html_url":"https://github.com/ansoni/fluent-plugin-json-schema-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoni%2Ffluent-plugin-json-schema-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoni%2Ffluent-plugin-json-schema-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoni%2Ffluent-plugin-json-schema-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ansoni%2Ffluent-plugin-json-schema-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ansoni","download_url":"https://codeload.github.com/ansoni/fluent-plugin-json-schema-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247097666,"owners_count":20883122,"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-08-01T13:02:01.509Z","updated_at":"2025-04-03T23:31:01.625Z","avatar_url":"https://github.com/ansoni.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# fluent-plugin-json-schema-filter\n\n[![Build Status](https://travis-ci.org/ansoni/fluent-plugin-json-schema-filter.svg?branch=master)](https://travis-ci.org/ansoni/fluent-plugin-json-schema-filter)\n[![Gem Version](https://badge.fury.io/rb/fluent-plugin-json-schema-filter.svg)](https://badge.fury.io/rb/fluent-plugin-json-schema-filter)\n\n[Fluentd](http://fluentd.org) filter plugin to validate records against a [json-schema](http://json-schema.org)\n\n## Installation\nUse RubyGems:\n\n    gem install fluent-plugin-json-schema-filter\n\n## Configuration\n\n*Discard Example*:\n\n\t\u003cmatch foo.**\u003e\n\t  @type json_schema\n\t  mode discard\n\t  schema_file /some/path.json #defaults to /etc/td-agent/schema.json\n\t\u003c/match\u003e\n\nwill result in records that do not validate being completely discarded.\n\n*Isolate Example*:\n\n\t\u003cmatch foo.**\u003e\n\t  @type json_schema\n\t  mode isolate\n\t  schema_file ...\n\t  isolate_tag_prefix invalid\n          add_validation_error true # results in a validation-error key being added to the record\n\t\u003c/match\u003e\n\nwill result in invalid records being tagged as \"invalid.\u003cinput tag\u003e\".  In the example above, invalid records would be invalid.foo.\\*\\*\n\n*Enrich Example*\n\n\t\u003cmatch foo.**\u003e\n\t  @type json_schema\n\t  mode enrich\n\t  schema_file ...\n\t  enrich_valid {\n\t    'valid': 'This is a great document' \n\t  } # default valid: true\n\t  enrich_invalid { \n\t    'invalid': 'You suck at the JSON' \n\t  } # default valid: false\n          add_validation_error true # results in a validation-error key being added to the record\n\t\u003c/match\u003e\n\nwill result in messages gaining either the enrich_valid or enrich_invalid depending on how the record validates.\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansoni%2Ffluent-plugin-json-schema-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fansoni%2Ffluent-plugin-json-schema-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fansoni%2Ffluent-plugin-json-schema-filter/lists"}