# Parsing custom date with Filebeat (or Logstash)

**URL:** <https://discuss.elastic.co/t/parsing-custom-date-with-filebeat-or-logstash/205201>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 25, 2019, 8:06am UTC](https://discuss.elastic.co/t/parsing-custom-date-with-filebeat-or-logstash/205201 "2019-10-25T08:06:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zebu14](https://avatars.discourse-cdn.com/v4/letter/z/aca169/32.png) [@zebu14](https://discuss.elastic.co/u/zebu14)\
**Post date:** [October 25, 2019, 8:06am UTC](https://discuss.elastic.co/t/parsing-custom-date-with-filebeat-or-logstash/205201/1 "2019-10-25T08:06:34Z")

</div>

Hello,

I have some logs that I want to sent into an Elastic index.

Log lines examples :

```
"1","O","I","190312 135108","E","165","1024000","FTP","GREENTRF","TST02","/home/gateway/","test054","TSTTST01","GREENTRF","TST02"
"1","O","I","190312 135108","E","165","1024000","FTP","GREENTRF","TST02","/home/gateway/","test055","TSTTST01","GREENTRF","TST02"
"1","O","I","190312 135108","E","165","1024000","FTP","GREENTRF","TST02","/home/gateway/","test056","TSTTST01","GREENTRF","TST02"
"1","O","I","190312 135108","E","0","1024000","FTP","GREENTRF","TST02","/home/gateway/","test057","TSTTST01","GREENTRF","TST02"
"1","O","I","190312 135108","E","0","1024000","FTP","GREENTRF","TST02","/home/gateway/","test058","TSTTST01","GREENTRF","TST02"
"1","O","I","190312 135108","E","0","1024000","FTP","GREENTRF","TST02","/home/gateway/","test059","TSTTST01","GREENTRF","TST02"

```

The date is in the 3rd field : "190312 135108"  
==\> 12 March 2019 13:51:08

The goal is to use this field as timestamp in the target index.

How can this be done with filebeat ?  
Is it even possible ?

If not, I would use Logstash with the "date" filter.

Thank you

---

<div class="post-metadata">

**Author:** ![pmercado](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@pmercado](https://discuss.elastic.co/u/pmercado)\
**Post date:** [October 25, 2019, 1:48pm UTC](https://discuss.elastic.co/t/parsing-custom-date-with-filebeat-or-logstash/205201/2 "2019-10-25T13:48:57Z")

</div>

Probably this might help  
[https://www.elastic.co/guide/en/elasticsearch/reference/master/date-processor.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/date-processor.html)

---

<div class="post-metadata">

**Author:** ![zebu14](https://avatars.discourse-cdn.com/v4/letter/z/aca169/32.png) [@zebu14](https://discuss.elastic.co/u/zebu14)\
**Post date:** [October 25, 2019, 1:51pm UTC](https://discuss.elastic.co/t/parsing-custom-date-with-filebeat-or-logstash/205201/3 "2019-10-25T13:51:27Z")

</div>

Hello,

Thanks for this link, but already read and it doesn't help because it doesn't seem to support "custom" formats.

---

<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:** [November 22, 2019, 2:05pm UTC](https://discuss.elastic.co/t/parsing-custom-date-with-filebeat-or-logstash/205201/4 "2019-11-22T14:05:08Z")

</div>

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