The following configuration file is to append product name and hostname (via environment variable) to record.
[INPUT] Name mem Tag mem.local[OUTPUT] Name stdout Match *[FILTER] Name record_modifier Match * Record hostname ${HOSTNAME} Record product Awesome_Tool
The following configuration file is to remove 'Swap.*' fields.
[INPUT] Name mem Tag mem.local[OUTPUT] Name stdout Match *[FILTER] Name record_modifier Match * Remove_key Swap.total Remove_key Swap.used Remove_key Swap.free
The following configuration file is to remain 'Mem.*' fields.
[INPUT] Name mem Tag mem.local[OUTPUT] Name stdout Match *[FILTER] Name record_modifier Match * Allowlist_key Mem.total Allowlist_key Mem.used Allowlist_key Mem.free