# Date parser using ingest node

**URL:** <https://discuss.elastic.co/t/date-parser-using-ingest-node/214341>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 9, 2020, 4:45am UTC](https://discuss.elastic.co/t/date-parser-using-ingest-node/214341 "2020-01-09T04:45:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praveen\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praveen_v/32/60224_2.png) [@Praveen\_V](https://discuss.elastic.co/u/Praveen_V)\
**Post date:** [January 9, 2020, 4:45am UTC](https://discuss.elastic.co/t/date-parser-using-ingest-node/214341/1 "2020-01-09T04:45:42Z")

</div>

Hi All -

Am trying to chop a message and convert the string to Date using Ingest node , however able to get the date string from the message .. but the format is string in Elastic. Any help here would be much appreciated **[Am not using Logstash]**

**Original Message** : 2019-12-24 09:43 +00:00: Serving page: /signin

**event\_created** is extracted successfully as : 2019-12-24 09:43

**JSON**

curl -X PUT "localhost:9200/\_ingest/pipeline/fields\_extraction?pretty" -H 'Content-Type: application/json' -d'  
{  
"description" : "parsing the input log to fields",  
"processors" : [  
{  
"dissect": {  
"field": "message",  
"pattern" : "%{event\_created} +%{extracted\_timezone}: %{log\_output}",  
"ignore\_failure" : true  
}  
},  
{  
"date": {  
"field" : "event\_created",  
"target\_field" : "event\_created",  
"formats" : ["yyyy-MM-dd hh:mm"],  
"timezone" : "London",  
"ignore\_failure" : true  
}  
}  
]  
}'

---

<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:** [February 6, 2020, 4:45am UTC](https://discuss.elastic.co/t/date-parser-using-ingest-node/214341/2 "2020-02-06T04:45:51Z")

</div>

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