record_transformer
Example Configurations
<filter foo.bar>
@type record_transformer
<record>
hostname "#{Socket.gethostname}"
tag ${tag}
</record>
</filter>{"message":"hello world!"}{"message":"hello world!", "hostname":"db001.internal.example.com", "tag":"foo.bar"}<filter foo.bar>
@type record_transformer
enable_ruby
<record>
avg ${record["total"] / record["count"]}
</record>
</filter>Parameters
<record> directive
enable_ruby (optional)
auto_typecast (optional)
renew_record (optional)
renew_time_key (optional, string type)
keep_keys (optional, array type)
remove_keys (optional, array type)
Need more performance?
FAQ
What are the differences between ${record["key"]} and ${key}?
${record["key"]} and ${key}?Learn More
Last updated
Was this helpful?