# Fetching data from DB using logstash

**URL:** <https://discuss.elastic.co/t/fetching-data-from-db-using-logstash/149532>\
**Category:** Logstash\
**Created:** [September 22, 2018, 7:57am UTC](https://discuss.elastic.co/t/fetching-data-from-db-using-logstash/149532 "2018-09-22T07:57:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baddy9459](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/baddy9459/32/45740_2.png) [@baddy9459](https://discuss.elastic.co/u/baddy9459)\
**Post date:** [September 22, 2018, 7:57am UTC](https://discuss.elastic.co/t/fetching-data-from-db-using-logstash/149532/1 "2018-09-22T07:57:55Z")

</div>

I am trying to fetch data from Database.  
I have field timedetail in database table,  
this field is in format "dd-MMM-yy HH.mm.ss.SSSS a"  
i want to add this field as @timestamp  
when i used  
filter{  
date{  
match=\> ["timedetail", "dd-MMM-yy HH.mm.ss.SSSS a"  
}  
}

it gives dateparse error

how can i solve this?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 24, 2018, 6:27pm UTC](https://discuss.elastic.co/t/fetching-data-from-db-using-logstash/149532/2 "2018-09-24T18:27:43Z")

</div>

It's impossible to help without seeing an example timestamp. You might as well show a complete event.

When the date filter fails and tags the event with `_dateparsefailure` it logs a message describing the problem, so look in the Logstash log for clues.

---

<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:** [October 22, 2018, 6:37pm UTC](https://discuss.elastic.co/t/fetching-data-from-db-using-logstash/149532/3 "2018-10-22T18:37:19Z")

</div>

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