Output.elasticsearch , hosts: ["localhost:9200"] Which go file is calling this address?

output.elasticsearch ,
hosts: ["localhost:9200"]
Which go file is calling this address?

Here might be a good start for hunting down output.elasticsearch.hosts: https://github.com/elastic/beats/blob/master/libbeat/outputs/elasticsearch/client.go#L166

hosts: ["GZTXY-BIGDATA-PRD-REPT003:9092","GZTXY-BIGDATA-PRD-REPT004:9092","GZTXY-BIGDATA-PRD-REPT005:9092"]

log errors :

2019-04-23T19:31:20.179+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT005:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT004:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT004:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT003:9092 (unregistered)

2019-04-23T19:31:20.180+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT005:9092 (unregistered)

2019-04-23T19:31:20.181+0800 INFO kafka/log.go:53 Connected to broker at GZTXY-BIGDATA-PRD-REPT003:9092 (unregistered)

Can you elaborate a bit more what you are trying to do?

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