This pattern in the mutate in logstash.conf isnt working as expected to add hostname as a field. referring to this discussion Mutate beats field it shows working as expected. Any help greatly appreciated.
mutate { add_field => { "hostname" => %{[beat][hostname]} } }
File beats 5.1.1 -> Kafka 0.9 -> Logstash 5.0.2
Thanks