Add custom metadata to events

(Justin Walz) #1


Is it possible to add custom metadata to events?

I like the concept of* and would like to add something like ec2 tags to that, nested under* for everything on that instance.

Alternatively, it'd be nice to be able to whitelist environment details, perhaps meta.env.ENV_VAR_NAME=$value.

Does support like this exist in metricbeat (or beats lib?).

Currently I'm sending metricbeat events to logstash, and adding the context there, but it'd be nice to only manage the single metricbeat instance.

Best, Justin

(Mario Castro) #2

Hi @justinw

You can use fields and tags in your modules configuration. Is that what you need?


(Justin Walz) #3

Yes, that'll definitely work. Thanks!