# Logstash goes down || Solution

**URL:** <https://discuss.elastic.co/t/logstash-goes-down-solution/213887>\
**Category:** Logstash\
**Created:** [January 6, 2020, 12:18pm UTC](https://discuss.elastic.co/t/logstash-goes-down-solution/213887 "2020-01-06T12:18:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkcharlie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkcharlie/32/55119_2.png) [@rkcharlie](https://discuss.elastic.co/u/rkcharlie)\
**Post date:** [January 6, 2020, 12:18pm UTC](https://discuss.elastic.co/t/logstash-goes-down-solution/213887/1 "2020-01-06T12:18:48Z")

</div>

Hello Team,

I am trying to push data from oracle to ES and I am able to do that as well. My problem when I am pushing those data and that time my ES goes down then I am not able to figure out that from where I need to push that data because my last\_run\_metadata file also gets updated.

Thanks

---

<div class="post-metadata">

**Author:** ![rkcharlie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rkcharlie/32/55119_2.png) [@rkcharlie](https://discuss.elastic.co/u/rkcharlie)\
**Post date:** [January 8, 2020, 1:44pm UTC](https://discuss.elastic.co/t/logstash-goes-down-solution/213887/2 "2020-01-08T13:44:28Z")

</div>

I resolve the above issue, Please find the below solution script:-  
input {  
jdbc {  
jdbc\_driver\_library =\> "C:/ELK/logstash-7.3.1/logstash-core/lib/jars/postgresql-42.2.8.jar"  
jdbc\_driver\_class =\> "org.postgresql.Driver"  
jdbc\_connection\_string =\> "jdbc:postgresql://:/?ssl=false"  
jdbc\_user =\> ""  
jdbc\_password =\> ""  
jdbc\_paging\_enabled =\> "true"  
jdbc\_page\_size =\> "50000"  
schedule =\> "\* \* \* \* \*"  
statement =\> "select \* from aiml\_test\_rk where defect\_id \> :sql\_last\_value"  
use\_column\_value =\> true  
tracking\_column =\> defect\_id  
record\_last\_run =\> true  
last\_run\_metadata\_path =\>"C:/ELK/logstash\_jdbc\_last\_run\_t\_data.txt"  
}  
}  
output {  
stdout {  
codec =\> rubydebug  
}  
elasticsearch {  
action =\> "index"  
hosts =\> ["127.0.0.1:9200"]  
index =\> "recovery\_post"  
}  
}

---

<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:** [February 5, 2020, 1:44pm UTC](https://discuss.elastic.co/t/logstash-goes-down-solution/213887/3 "2020-02-05T13:44:29Z")

</div>

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