# Modify @timestamp

**URL:** <https://discuss.elastic.co/t/modify-timestamp/205471>\
**Category:** Logstash\
**Created:** [October 28, 2019, 1:13pm UTC](https://discuss.elastic.co/t/modify-timestamp/205471 "2019-10-28T13:13:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Kaspar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_kaspar/32/44443_2.png) [@Jan\_Kaspar](https://discuss.elastic.co/u/Jan_Kaspar)\
**Post date:** [October 28, 2019, 1:13pm UTC](https://discuss.elastic.co/t/modify-timestamp/205471/1 "2019-10-28T13:13:21Z")

</div>

Hi,

I have a question regarding timestamp. I have a lot of text logs with date and time  
I am parsing field %{DATE:date} %{TIME:time} and i get following format:

28.10.2019 14:10:10

Is it possible to put this value to @timestamp?

Thanks

Jan

---

<div class="post-metadata">

**Author:** ![Jan\_Kaspar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_kaspar/32/44443_2.png) [@Jan\_Kaspar](https://discuss.elastic.co/u/Jan_Kaspar)\
**Post date:** [October 28, 2019, 2:15pm UTC](https://discuss.elastic.co/t/modify-timestamp/205471/2 "2019-10-28T14:15:50Z")

</div>

Hi,

I have it solved by this way:

```
        mutate {
            add_field => {
                "newtimestamp" => "%{date} %{time}"
            }
        }
        date {
            match => ["newtimestamp","dd.MM.yyyy HH:mm:ss"]
            target => "@timestamp"
        }

```

It works.

Jan

---

<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 25, 2019, 2:15pm UTC](https://discuss.elastic.co/t/modify-timestamp/205471/3 "2019-11-25T14:15:59Z")

</div>

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