# Timestamp format help "20151027 10:20:37"

**URL:** <https://discuss.elastic.co/t/timestamp-format-help-20151027-10-20-37/33318>\
**Category:** Logstash\
**Created:** [October 29, 2015, 10:57pm UTC](https://discuss.elastic.co/t/timestamp-format-help-20151027-10-20-37/33318 "2015-10-29T22:57:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruchii](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@ruchii](https://discuss.elastic.co/u/ruchii)\
**Post date:** [October 29, 2015, 10:57pm UTC](https://discuss.elastic.co/t/timestamp-format-help-20151027-10-20-37/33318/1 "2015-10-29T22:57:38Z")

</div>

I am new to logstash would like to extract @timestamp data from "20151027 10:20:37 0 0 1 0 0 0 0 99 1 0 0 1352 1305 0 1225 2 0.61 0.53 0.52 3 0 24 22 3 16 0 5 0 0 0 0 0 0 0 0 0 0 0 0".  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![PhaedrusTheGreek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phaedrusthegreek/32/4884_2.png) [@PhaedrusTheGreek](https://discuss.elastic.co/u/PhaedrusTheGreek)\
**Post date:** [October 29, 2015, 11:23pm UTC](https://discuss.elastic.co/t/timestamp-format-help-20151027-10-20-37/33318/2 "2015-10-29T23:23:45Z")

</div>

@ruchii,

Try this:

```auto
filter {
  grok {
    match => { "message" => [
        "(?<timestamp>\S+ \S+) %{GREEDYDATA:rest}"
        ]}
  }
  date {
      match => ["timestamp" , "YYYYMMdd HH:mm:ss"]
      locale => "en"
  }
}

```

---

<div class="post-metadata">

**Author:** ![ruchii](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@ruchii](https://discuss.elastic.co/u/ruchii)\
**Post date:** [October 29, 2015, 11:35pm UTC](https://discuss.elastic.co/t/timestamp-format-help-20151027-10-20-37/33318/3 "2015-10-29T23:35:00Z")

</div>

@PhaedrusTheGreek Thank you that worked.

---

<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:** [July 6, 2017, 5:24am UTC](https://discuss.elastic.co/t/timestamp-format-help-20151027-10-20-37/33318/4 "2017-07-06T05:24:56Z")

</div>


