How to get host IP address?


(Rahul Singh) #1

Hi,

I am getting the host name when I see logs in kibana. We have many servers who have common name so its hard to identify server from logs so I want IP address also to be sent in logs.
How should I do that?

Thanks


(Steffen Siering) #2

In beats you can configure the name field with a custom name per instance. As a machine can have multiple IPs, beats do not try to add IPs. In logstash support for adding beats client IPs has been added most recently: https://github.com/logstash-plugins/logstash-input-beats/issues/180


(Rahul Singh) #3

My scenario is like this
Metricbeat -> Kafka -> Logstash -> ES -> Kibana

So logs come from kafka for multiple servers in logstash.


(Steffen Siering) #4

In this case your best option is to use the name setting, in order to configure a custom name.

You can also use the fields setting to add more meta-data one can use for filtering.


(system) #5

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