# Logstash always fail to connect jdbc connection with sql server

**URL:** <https://discuss.elastic.co/t/logstash-always-fail-to-connect-jdbc-connection-with-sql-server/202483>\
**Category:** Logstash\
**Created:** [October 7, 2019, 7:13am UTC](https://discuss.elastic.co/t/logstash-always-fail-to-connect-jdbc-connection-with-sql-server/202483 "2019-10-07T07:13:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)\
**Post date:** [October 7, 2019, 7:13am UTC](https://discuss.elastic.co/t/logstash-always-fail-to-connect-jdbc-connection-with-sql-server/202483/1 "2019-10-07T07:13:47Z")

</div>

Dear All.

I am trying to fetch auto data from sql server to Elasticsearch but i am getting below failure error.

> [2019-10-07T12:12:25,194][INFO][logstash.outputs.elasticsearch] retrying failed action with response code: 429 ({"type"=\>"es\_rejected\_execution\_exception", "reason"=\>"rejected execution of processing of [19483440][indices:data/write/bulk[s][p]]: request: BulkShardRequest [[dbdataindex\_join\_04\_10\_2019\_labs\_medications\_union][0]] containing [125] requests, target allocation id: nae3lQr2S1m8lU8x\_Xd9EQ, primary term: 1 on EsThreadPoolExecutor[name = slave1/write, queue capacity = 200, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@c477fff[Running, pool size = 4, active threads = 4, queued tasks = 200, completed tasks = 3406195]]"})

from database admin side error:-

> SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure. The logon attempt failed [this ip].

Please help for this issue.

Thanks  
HadoopHelp

---

<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 4, 2019, 7:13am UTC](https://discuss.elastic.co/t/logstash-always-fail-to-connect-jdbc-connection-with-sql-server/202483/2 "2019-11-04T07:13:49Z")

</div>

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