Hello! Has anyone had any luck trying to install the json-schema-filter plugin and getting it to work? I've tried installing the plugin with the td-agent-gem install method and the regular gem install method, but when I try to launch td-agent with config that has the json-schema specified, the td-agent fails to start. I get:--Starting td-agent: 2016-10-16 19:40:43 -0700 [error]: fluent/supervisor.rb:373:rescue in main_process: config error file="/etc/td-agent/td-agent.conf" error="Unknown output plugin 'json_schema'. Run 'gem search -rd fluent-plugin' to find plugins"
When I do the gem search above, the filter comes back in the list of available gems:
fluent-plugin-json-schema-filter (0.0.3)
Author: Anthony Johnson
Fluentd Filter plugin to validate incoming records against a json
schema
My config file that contains the 'match' for the json-schema plugin is as follows (copied from the github repo):
<match **>
@type json_schema
mode enrich
schema_file /home/testuser/schemas/test.json
enrich_valid valid
enrich_invalid invalid
add_validation_error true # results in a validation-error key being added to the record
</match>
Any help would be really appreciated! Thank you!
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<filter **>
@type json_schemamode enrichschema_file /home/testuser/schemas/test.jsonenrich_valid validenrich_invalid invalidadd_validation_error true # results in a validation-error key being added to the record
</filter>
<match **>
@type filepath /var/log/fluent/filtered-input.log
</match>
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.