# Logstash new record

**URL:** <https://discuss.elastic.co/t/logstash-new-record/333629>\
**Category:** Logstash\
**Created:** [May 17, 2023, 6:53am UTC](https://discuss.elastic.co/t/logstash-new-record/333629 "2023-05-17T06:53:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m3bgwad](https://avatars.discourse-cdn.com/v4/letter/m/a183cd/32.png) [@m3bgwad](https://discuss.elastic.co/u/m3bgwad)\
**Post date:** [May 17, 2023, 6:53am UTC](https://discuss.elastic.co/t/logstash-new-record/333629/1 "2023-05-17T06:53:52Z")

</div>

How to handle the logstash configuration in the case when I run the JDBC query and then there are no results through 1 to 10 minutes, if there is no result I need to generate a new record to store it in as document in the elastic index

---

<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, 6:54am UTC](https://discuss.elastic.co/t/logstash-new-record/333629/2 "2023-06-14T06:54:00Z")

</div>

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