Hello
I would like to add the node.name value to an extra message field.
Is this value readable from inside of logstash?
I tried to use the node.name like the host field: "fqdn" => "%{host}" without success.
Dose anybody know how to access the node.name value?
This is my example:
input {
file {
path => "/var/log/xyz/service.log"
type => "xyz-daemon"
add_field => { "service-port" => "12345"
"service-name" => "my-service"
"fqdn" => "%{host}"
"node-name" => ????
}
}
Best Regards,
Daniel

