# Transfer logstash data to elasticsearch through HA proxy

**URL:** <https://discuss.elastic.co/t/transfer-logstash-data-to-elasticsearch-through-ha-proxy/106151>\
**Category:** Logstash\
**Created:** [November 2, 2017, 9:04am UTC](https://discuss.elastic.co/t/transfer-logstash-data-to-elasticsearch-through-ha-proxy/106151 "2017-11-02T09:04:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuxuanlai](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@vuxuanlai](https://discuss.elastic.co/u/vuxuanlai)\
**Post date:** [November 2, 2017, 9:04am UTC](https://discuss.elastic.co/t/transfer-logstash-data-to-elasticsearch-through-ha-proxy/106151/1 "2017-11-02T09:04:59Z")

</div>

Hi there,  
I have a logstash server, a elasticsearch server, a HA proxy server. I want to transfer data from LS to ES through HA proxy as flow:  
LS(10.0.0.2) ------\> HA proxy(172.0.0.2) -------\> ES(192.168.56.2)  
I just configed LS output as below:

> ```
> output {
> elasticsearch {
> hosts => ["172.0.0.2:9200"]
> manage_template => false
> index => "test"
> document_type => "%{[@metadata][type]}"
> }
> }
> 
> ```

I got the index in ES server but there are no data belong to it. The result as below:

> ```
> health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
> red open test d5KEDZdpSq2GsQ-D0KYneQ 5 1 <blank> <blank> <blank> <blank>
> 
> ```

So, how can i configure LS output to which ES can get data from LS through HA proxy?

Thanks.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 2, 2017, 10:44am UTC](https://discuss.elastic.co/t/transfer-logstash-data-to-elasticsearch-through-ha-proxy/106151/2 "2017-11-02T10:44:44Z")

</div>

Why is the health of the index red? Check your ES logs.

No special configuration should be necessary on the Logstash side. The whole point of HAproxy is to be a transparent proxy.

---

<div class="post-metadata">

**Author:** ![vuxuanlai](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@vuxuanlai](https://discuss.elastic.co/u/vuxuanlai)\
**Post date:** [November 2, 2017, 11:05am UTC](https://discuss.elastic.co/t/transfer-logstash-data-to-elasticsearch-through-ha-proxy/106151/3 "2017-11-02T11:05:10Z")

</div>

The log error as below:

> [2017-11-02T17:59:07,703][WARN][o.e.b.ElasticsearchUncaughtExceptionHandler] [CINFRA-els01] uncaught exception in thread [main]  
> org.elasticsearch.bootstrap.StartupException: java.lang.IllegalStateException: failed to obtain node locks, tried [[/data/elasticsearch/CINFRA-els]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max\_local\_storage\_nodes] (was [1])?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [November 2, 2017, 11:13am UTC](https://discuss.elastic.co/t/transfer-logstash-data-to-elasticsearch-through-ha-proxy/106151/4 "2017-11-02T11:13:27Z")

</div>

Well, that needs to be fixed. I suggest you consult the Elasticsearch group unless you can figure it out.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 30, 2017, 11:14am UTC](https://discuss.elastic.co/t/transfer-logstash-data-to-elasticsearch-through-ha-proxy/106151/5 "2017-11-30T11:14:09Z")

</div>

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