# Logstash JDBC insert after select completes

**URL:** <https://discuss.elastic.co/t/logstash-jdbc-insert-after-select-completes/333660>\
**Category:** Logstash\
**Created:** [May 17, 2023, 1:06pm UTC](https://discuss.elastic.co/t/logstash-jdbc-insert-after-select-completes/333660 "2023-05-17T13:06:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommycahir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tommycahir/32/86987_2.png) [@tommycahir](https://discuss.elastic.co/u/tommycahir)\
**Post date:** [May 17, 2023, 1:06pm UTC](https://discuss.elastic.co/t/logstash-jdbc-insert-after-select-completes/333660/1 "2023-05-17T13:06:51Z")

</div>

Hey All  
Just looking to understand if there is some way that I can run a SQL INSERT before and after a SELECT statement in the filter section to update a tracking table in the DB to say that the select query has started and finished.  
Any and all help would be appreciated.

---

<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:** [June 14, 2023, 1:07pm UTC](https://discuss.elastic.co/t/logstash-jdbc-insert-after-select-completes/333660/2 "2023-06-14T13:07:46Z")

</div>

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