# Jdbc input plugin add field when connection fails

**URL:** <https://discuss.elastic.co/t/jdbc-input-plugin-add-field-when-connection-fails/192073>\
**Category:** Logstash\
**Created:** [July 24, 2019, 3:18pm UTC](https://discuss.elastic.co/t/jdbc-input-plugin-add-field-when-connection-fails/192073 "2019-07-24T15:18:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtudisco](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@mtudisco](https://discuss.elastic.co/u/mtudisco)\
**Post date:** [July 24, 2019, 3:18pm UTC](https://discuss.elastic.co/t/jdbc-input-plugin-add-field-when-connection-fails/192073/1 "2019-07-24T15:18:33Z")

</div>

Hi All,  
I'm new to Elastic and i'm configuring logstash with jdbc imput to get information from oracle database, however if for any reason (listener down, db down, etc) jdbc connection fails, it does not generate any information in elasticsearch. Is there any way to generate some field when connection fails as to monitor that it was not possible to connect?

thanks

---

<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:** [August 21, 2019, 3:18pm UTC](https://discuss.elastic.co/t/jdbc-input-plugin-add-field-when-connection-fails/192073/2 "2019-08-21T15:18:45Z")

</div>

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