# How to convert this date type to a readable type '1661126482845'

**URL:** <https://discuss.elastic.co/t/how-to-convert-this-date-type-to-a-readable-type-1661126482845/314782>\
**Category:** Logstash\
**Created:** [September 20, 2022, 2:15pm UTC](https://discuss.elastic.co/t/how-to-convert-this-date-type-to-a-readable-type-1661126482845/314782 "2022-09-20T14:15:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vitoria\_De\_Lara](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitoria_de_lara/32/102210_2.png) [@Vitoria\_De\_Lara](https://discuss.elastic.co/u/Vitoria_De_Lara)\
**Post date:** [September 20, 2022, 2:15pm UTC](https://discuss.elastic.co/t/how-to-convert-this-date-type-to-a-readable-type-1661126482845/314782/1 "2022-09-20T14:15:32Z")

</div>

I need to convert this date type to a readable date type in my file. conf, I'm using the json filter.

I've tried several conversion models but it's not working. can anybody help me?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 20, 2022, 4:00pm UTC](https://discuss.elastic.co/t/how-to-convert-this-date-type-to-a-readable-type-1661126482845/314782/2 "2022-09-20T16:00:36Z")

</div>

What have you tried? Share your configuration.

The value `1661126482845` is in epoch time.

The date filter would be something like this:

```auto
date {
    match => ["fieldName", "UNIX", "UNIX_MS"]
}

```

---

<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 18, 2022, 4:01pm UTC](https://discuss.elastic.co/t/how-to-convert-this-date-type-to-a-readable-type-1661126482845/314782/3 "2022-10-18T16:01:07Z")

</div>

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