[Feature Request] Add support for customizable Type value in heka encoders
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Invalid
|
Wishlist
|
Matt Simonin |
Bug Description
In the current implementation, Kolla uses heka to sends parsed log lines to elasticsearch output.
If one sends differents Openstack instances logs into the same elasticsearch instance, I don't see any obvious way to differentiate the source of the logs.
I've slightly modified all the decoders to allow the Type to be passed through the configuration like this :
[openstack_
type = "SandboxDecoder"
filename = "lua_decoders/
[openstack_
type = "my custom type"
Each decoder have to be slighly modified to read the value from the config. The value can be defaulted to the current hard-coded value to ensure backward compatibility [1].
Let me know, if you think it's worth a review on gerrit.
Otherwise if there's another way to differentiate log provenance in a single elasticsearch instance, I'll be happy to learn it.
Changed in kolla: | |
importance: | Undecided → Wishlist |
status: | New → Opinion |
Due to deprecation of Heka, Kolla is moving to another logging engine. So any improvement is still welcome but not we should not put much effort on this.
Anyway, if you are not sure about a review on gerrit, it's always worth it (don't forget tag it with appropriate bug id)