# Logstash dissect change datatype to timestamp

**URL:** <https://discuss.elastic.co/t/logstash-dissect-change-datatype-to-timestamp/319470>\
**Category:** Logstash\
**Created:** [November 21, 2022, 2:59pm UTC](https://discuss.elastic.co/t/logstash-dissect-change-datatype-to-timestamp/319470 "2022-11-21T14:59:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edim2525](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@edim2525](https://discuss.elastic.co/u/edim2525)\
**Post date:** [November 21, 2022, 2:59pm UTC](https://discuss.elastic.co/t/logstash-dissect-change-datatype-to-timestamp/319470/1 "2022-11-21T14:59:10Z")

</div>

Hi ,  
Is there a way to change the mapping field to timestamp ?

This is my input "Time :2022-11-21 12:01:30.85"

I'm using "dissect \> mapping" to map this field, but the output data type is "text" and I want it as a timestamp .

my conf ..

```auto
filter {
  dissect {
    mapping => {
      "message" => "Time :%{TIMESTAMP_ISO8601}
    }
  }
}

```

---

<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:** [November 21, 2022, 3:04pm UTC](https://discuss.elastic.co/t/logstash-dissect-change-datatype-to-timestamp/319470/2 "2022-11-21T15:04:40Z")

</div>

Use a [date filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html) to parse it.

---

<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:** [December 19, 2022, 3:05pm UTC](https://discuss.elastic.co/t/logstash-dissect-change-datatype-to-timestamp/319470/3 "2022-12-19T15:05:25Z")

</div>

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