I would suggest confirming that your ingest pipeline is working correctly by searching directly against the index on server2. If you can see the data, then try searching against server 1 ES.
Can you share your elasticsearch.yml file (being sure to redact anything sensitive in it such as passwords)? It sounds like you have a cluster without a master node.
publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
not enough master nodes discovered during pinging (found [[]], but needed [-1]), pinging again
[...]
node2 log:
[2018-03-08T17:38:22,652][INFO ][o.e.t.TransportService ] [node2] publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
[2018-03-08T17:38:25,934][INFO ][o.e.c.s.ClusterService ] [node2] new_master {node2}{CbKICAGjRmihWSYoSdQTgg}{NJVRju7ARN2n1VZCdPoH0w}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2018-03-08T17:38:26,120][INFO ][o.e.h.n.Netty4HttpServerTransport] [node2] publish_address {172.19.0.2:9200}, bound_addresses {[::]:9200}
[2018-03-08T17:38:26,121][INFO ][o.e.n.Node ] [node2] started
[2018-03-08T17:38:27,678][INFO ][o.e.g.GatewayService ] [node2] recovered [3] indices into cluster_state
[2018-03-08T17:38:29,929][INFO ][o.e.c.r.a.AllocationService] [node2] Cluster health status changed from [RED] to [GREEN] (reason: [shards started [[logstash-2018.03.08][0]] ...]).
I installed a new master and I have other problems:
master elasticsearch.yml
cluster.name: "elkcluster"
node.name: "master" #need to uncomment because it cause error in kibana dashboard #node.master: false #node.data: false
network.host: localhost
http.port: 9200
discovery.zen.ping.unicast.hosts:
your master configuration specifies network.host as localhost. This means no other machine can connect to that ES instance, as it binds to the loopback (127.0.0.1). Also, the timeout for resolving the hostname suggests that you are using a DNS name that does not exist in DNS. Are you literally using "master.FQDN" in node2's config ? That will not resolve. It should be something like "master.yourdomain.com".
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.