Ok. It's very clear. Thank you for your explanations and your patience.

Regards.


Morphlines should be ok in both cases but if you disable the FlumeEvents you will lose metadata, so the morthline should be aware of that.
You can always put whatever you want in the body (e.g. a json with the headers plus the original body)


If metadata is so important to you, it would be better is you leave parseAsEvent=true and parse the kafka events as avro