vim filebeat.yml,在processors中新增script #Processors processors:- add_host_metadata:when.not.contains.