# Implement concurrency while inserting data to ES using jdbc conection in logstash config file

**URL:** <https://discuss.elastic.co/t/implement-concurrency-while-inserting-data-to-es-using-jdbc-conection-in-logstash-config-file/128122>\
**Category:** Elasticsearch\
**Created:** [April 16, 2018, 8:00am UTC](https://discuss.elastic.co/t/implement-concurrency-while-inserting-data-to-es-using-jdbc-conection-in-logstash-config-file/128122 "2018-04-16T08:00:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manjur](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@manjur](https://discuss.elastic.co/u/manjur)\
**Post date:** [April 16, 2018, 8:00am UTC](https://discuss.elastic.co/t/implement-concurrency-while-inserting-data-to-es-using-jdbc-conection-in-logstash-config-file/128122/1 "2018-04-16T08:00:24Z")

</div>

2m  
Hi,

I am using below config file for logstash. I have used schedule= 1 min as jdbc scheduler which keep on inserting data to ES in every 1 min. But when number of records are more i am not able to identify weather it is following transaction or not . it should follow locking of resource data. How to implement locking kind of thing it in this case.

input {  
jdbc {  
jdbc\_driver\_library =\> "demo\sqljdbc\_6.4\enu\mssql-jdbc-6.4.0.jre8.jar"  
jdbc\_driver\_class =\> "com.microsoft.sqlserver.jdbc.SQLServerDriver"  
jdbc\_connection\_string =\> "jdbc:sqlserver://L-ff;databaseName=Cultivation;integratedSecurity=true;"  
jdbc\_user =\> "manjur.gani"  
statement\_filepath=\>"demo:\SQLQuery12.sql"  
schedule =\> "\* \* \* \* \*"  
tracking\_column =\> "sdate"  
last\_run\_metadata\_path =\> "demo.logstash\_jdbc\_last\_run"  
tracking\_column\_type =\> "timestamp"  
use\_column\_value =\> true  
type =\>farm  
}

}  
output  
{  
//code  
}

---

<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:** [May 14, 2018, 8:00am UTC](https://discuss.elastic.co/t/implement-concurrency-while-inserting-data-to-es-using-jdbc-conection-in-logstash-config-file/128122/2 "2018-05-14T08:00:29Z")

</div>

Closed on May 14, 2018, 8:00am UTC

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