# Logstash Configuration for Multi-Database Input Monitoring and Notification

**URL:** <https://discuss.elastic.co/t/logstash-configuration-for-multi-database-input-monitoring-and-notification/361115>\
**Category:** Logstash\
**Created:** [June 9, 2024, 6:05pm UTC](https://discuss.elastic.co/t/logstash-configuration-for-multi-database-input-monitoring-and-notification/361115 "2024-06-09T18:05:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SalehEska](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saleheska/32/121805_2.png) [@SalehEska](https://discuss.elastic.co/u/SalehEska)\
**Post date:** [June 9, 2024, 6:05pm UTC](https://discuss.elastic.co/t/logstash-configuration-for-multi-database-input-monitoring-and-notification/361115/1 "2024-06-09T18:05:05Z")

</div>

In Logstash, I have multiple inputs, such as Oracle and MySQL databases. Each input contains a query to retrieve data. I need to check if the process reaches each database input and executes the query, If the result of the query is empty (no data), or if the query specifies a condition like "where id \> 5" and there are no records with an ID greater than 5, I need to detect this and send a notification to indicate that the synchronization is working but there are no records.
