Introduction
This plugin does two things:
- Sorts the fields in each record according to the default ruby
#Array.sort - Removes fields who's values it considers to either be
nil?orempty?
Configuration
<filter **>
@type record_sort
</filter>Rationale
AWS Athena and Glue prefer sorted JSON in S3 that has truthy values for all keys.