Dynamically determine OS name


In the agent yml file, is there a way to dynamically determine the OS name (windows, Linux, etc) to be included in the log msgs?

I'm using filebeats version 7.x.
I see this doc for version 6.x using Host fields, but there is no example snippet on how to use it. Also, it seems this may have been removed in 7.x

Yes u can add the host meta data with add_host_metadata processor. See Add Host metadata | Filebeat Reference [7.13] | Elastic

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.