# Jdbc\_static does not write any staging file

**URL:** <https://discuss.elastic.co/t/jdbc-static-does-not-write-any-staging-file/142695>\
**Category:** Logstash\
**Created:** [August 2, 2018, 7:08am UTC](https://discuss.elastic.co/t/jdbc-static-does-not-write-any-staging-file/142695 "2018-08-02T07:08:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alesnav](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@alesnav](https://discuss.elastic.co/u/alesnav)\
**Post date:** [August 2, 2018, 7:08am UTC](https://discuss.elastic.co/t/jdbc-static-does-not-write-any-staging-file/142695/1 "2018-08-02T07:08:38Z")

</div>

Hi there!

I am facing a problem with jdbc\_static, because it does not write any staging file.

I have scheduled each load \*/8 hours, but it is querying the database many more times (near 1 per minute) because it does not create any staging file. Nor using the parameter "staging\_directory" pointing to a custom path, nor leaving it by default pointing to "/tmp/logstash/jdbc\_static/import\_data".

If I leave it unset, the logstash process creates a new folder "/tmp/logstash/jdbc\_static/import\_data", but it does not create any file inside it.

How can I fix this problem and force the staging file creation?

I am using Logstash 6.3.1.

Thanks,  
Best regards

---

<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 30, 2018, 7:08am UTC](https://discuss.elastic.co/t/jdbc-static-does-not-write-any-staging-file/142695/2 "2018-08-30T07:08:43Z")

</div>

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