Change elastic ip from localhost to x.x.x.x

Elastic search by default running on I change it to some IP address. Question is how I can change or tell logstash to connect with given IP address.

Thanks in Advance

Right here -

Example in your conf/pipeline use something like below

output {
  elasticsearch {
    hosts => "{{es_api_uri}}"
    user => "{{es_user}}"
    password => "{{es_password}}"

something similar. You can use Array of hosts too in the parameter

URI examples would be
A list of elastic endpoints: ["",""]
https protocol and port: [""]

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