vmware / fluent-plugin-vmware-loginsight

Fluentd plugin to forward logs to VMware Aria Operations for Logs
Other
10 stars 14 forks source link

There is a requirement to rename the field 'source' in fluentd #22

Closed mardanyan closed 3 years ago

mardanyan commented 3 years ago

Getting issue on filed name for event after running logs with below command docker run --log-driver=fluentd --log-opt tag="docker.{{.ID}}" ubuntu echo 'Hello Fluentd!' Generated logs has field with name source which is unacceptible by loginsight. Added feature to rename field name with preferable one. Configuration name is replace_field_name, which by default has following mapping config_param :replace_field_name, :hash, default: {"source": "log_source"}, value_type: :string

Signed-off-by: Tigran Mardanyan mrde00@gmail.com

mohitevishal commented 3 years ago

@mardanyan LGTM! I'll push out the new gem shortly.