# Datestamp to @timestamp

**URL:** <https://discuss.elastic.co/t/datestamp-to-timestamp/261604>\
**Category:** Logstash\
**Created:** [January 19, 2021, 11:04pm UTC](https://discuss.elastic.co/t/datestamp-to-timestamp/261604 "2021-01-19T23:04:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyberd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyberd/32/82569_2.png) [@cyberd](https://discuss.elastic.co/u/cyberd)\
**Post date:** [January 19, 2021, 11:04pm UTC](https://discuss.elastic.co/t/datestamp-to-timestamp/261604/1 "2021-01-19T23:04:53Z")

</div>

Hi,

So i need to parse this date format from my log:

**01/19/21-15:00:26.308390**

to the @timestamp so i can filter it in Kibana.

So far it looks like this:

```auto
  match => { "message" => "%{DATESTAMP:mystamp}
  date {
    match => ["mystamp" , "MM/dd/yy-HH:mm:ss.SSS"]
    timezone => "UTC"
    target => "@timestamp"
  }

```

But it's returning this tag error: "\_dateparsefailure"

What am i doing wrong ?

Thanks.

---

<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:** [January 19, 2021, 11:14pm UTC](https://discuss.elastic.co/t/datestamp-to-timestamp/261604/2 "2021-01-19T23:14:36Z")

</div>

> [@cyberd](#):
>
> `MM/dd/yy-HH:mm:ss.SSS`

If you have 6 digits of sub-second precision you need to use

```
MM/dd/yy-HH:mm:ss.SSSSSS

```

---

<div class="post-metadata">

**Author:** ![cyberd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cyberd/32/82569_2.png) [@cyberd](https://discuss.elastic.co/u/cyberd)\
**Post date:** [January 19, 2021, 11:21pm UTC](https://discuss.elastic.co/t/datestamp-to-timestamp/261604/3 "2021-01-19T23:21:34Z")

</div>

That's it.  
Thank you.

---

<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:** [February 16, 2021, 11:21pm UTC](https://discuss.elastic.co/t/datestamp-to-timestamp/261604/4 "2021-02-16T23:21:49Z")

</div>

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