# Logstash as a parser for data in column

**URL:** <https://discuss.elastic.co/t/logstash-as-a-parser-for-data-in-column/292352>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [December 17, 2021, 6:04pm UTC](https://discuss.elastic.co/t/logstash-as-a-parser-for-data-in-column/292352 "2021-12-17T18:04:57Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![INS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ins/32/92827_2.png) [@INS](https://discuss.elastic.co/u/INS)\
**Post date:** [December 27, 2021, 4:26pm UTC](https://discuss.elastic.co/t/logstash-as-a-parser-for-data-in-column/292352/22 "2021-12-27T16:26:38Z")

</div>

INPUT

```auto
"TIME" => "200254300",
"DATE" => "211223",

```

above value have a number format  
how can I change to the timestamp, I've tried by following code but got [\_dateparsefailure] in tag

```auto

 add_field => { "ts" => "%{DATE} %{TIME}" }
  
  }
  
 
mutate {  
			remove_field => ["message"] 
      }
date { match => ["ts", "yyMMdd HH:mm:ss:SSS", "ISO8601"]
       
      timezone => "Europe/Berlin"
      target => "@timestamp"
      remove_field => ["ts"]
      }
}

```

---

<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:** [December 27, 2021, 4:57pm UTC](https://discuss.elastic.co/t/logstash-as-a-parser-for-data-in-column/292352/23 "2021-12-27T16:57:25Z")

</div>

> [@INS](#):
>
> `date { match => ["ts", "yyMMdd HH:mm:ss:SSS", "ISO8601"]`

Your [ts] field is going to contain "211223 200254300", so that is not going to match. You could try

```
    date { match => ["ts", "yyMMdd HHmmssSSS"] ... }

```

---

<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:** [January 24, 2022, 4:57pm UTC](https://discuss.elastic.co/t/logstash-as-a-parser-for-data-in-column/292352/24 "2022-01-24T16:57:54Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/logstash-as-a-parser-for-data-in-column/292352.md?page=1)
