# Error with dates in logstash 6.7 and Oracle database

**URL:** <https://discuss.elastic.co/t/error-with-dates-in-logstash-6-7-and-oracle-database/234813>\
**Category:** Logstash\
**Created:** [May 28, 2020, 8:07pm UTC](https://discuss.elastic.co/t/error-with-dates-in-logstash-6-7-and-oracle-database/234813 "2020-05-28T20:07:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dooger21](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dooger21](https://discuss.elastic.co/u/dooger21)\
**Post date:** [May 28, 2020, 8:07pm UTC](https://discuss.elastic.co/t/error-with-dates-in-logstash-6-7-and-oracle-database/234813/1 "2020-05-28T20:07:53Z")

</div>

I have an error message when running a .conf script that contains a connection to an oracle database using jdbc and slq\_last\_value (3). The date format setting differs between database (1) and what is shown by logstash (2).  
In some forums I have seen that they change the format of the date using alter session set nls\_date\_format = 'DD-MM-YYY' -for example-but it does not work in the filter parameter of the jdbc filter.  
I hope you can guide me with the problem I am having

 ![error_jdbc_oracle](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6d10d2b9e82a4d1be0d37ccfbaa51d4294cb0896.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 28, 2020, 8:34pm UTC](https://discuss.elastic.co/t/error-with-dates-in-logstash-6-7-and-oracle-database/234813/2 "2020-05-28T20:34:39Z")

</div>

In your Oracle database, what is the value of NLS\_TIMESTAMP\_FORMAT?

---

<div class="post-metadata">

**Author:** ![dooger21](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@dooger21](https://discuss.elastic.co/u/dooger21)\
**Post date:** [May 28, 2020, 8:38pm UTC](https://discuss.elastic.co/t/error-with-dates-in-logstash-6-7-and-oracle-database/234813/3 "2020-05-28T20:38:14Z")

</div>

Hi Bagder,  
 ![settings](https://us1.discourse-cdn.com/elastic/original/3X/4/4/44abcb1d2cb73a6bd0ee2194fc66b5f0a2a9c4b3.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 28, 2020, 9:30pm UTC](https://discuss.elastic.co/t/error-with-dates-in-logstash-6-7-and-oracle-database/234813/4 "2020-05-28T21:30:18Z")

</div>

Actually you explicitly set the mask, so the default will not matter. Is it possible you have a row with a DT field that is 20202805, so that it is looking for month 28?

---

<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 25, 2020, 9:30pm UTC](https://discuss.elastic.co/t/error-with-dates-in-logstash-6-7-and-oracle-database/234813/5 "2020-06-25T21:30:20Z")

</div>

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