[SOLVED]How to remove agent.* and ecs.version?

Thanks @martinr_ubi. I thought there would be an option in filebeat directly to drop all meta data :confused:

I'll do it the way you suggested unless someone knows a better way :wink: