# Pattern for the Below Timestamp

**URL:** <https://discuss.elastic.co/t/pattern-for-the-below-timestamp/83731>\
**Category:** Logstash\
**Created:** [April 26, 2017, 3:47pm UTC](https://discuss.elastic.co/t/pattern-for-the-below-timestamp/83731 "2017-04-26T15:47:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![harshavardan25000](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harshavardan25000](https://discuss.elastic.co/u/harshavardan25000)\
**Post date:** [April 26, 2017, 3:47pm UTC](https://discuss.elastic.co/t/pattern-for-the-below-timestamp/83731/1 "2017-04-26T15:47:00Z")

</div>

Hello,

I have a timestamp like this"2017-03-27 17:00:27,352 -0500".

Tried using TIMESTAMP\_ISO8601 but it doesnt pick up timezone part . So I tried using a pattern which looks like "YYYY-MM-dd HH:mm:ss,SSS zZ" and it still doesnt pick up.

Any assistance is appreciated.

Thanks in advance,  
Harsha

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 26, 2017, 3:56pm UTC](https://discuss.elastic.co/t/pattern-for-the-below-timestamp/83731/2 "2017-04-26T15:56:16Z")

</div>

Are you talking about a grok pattern or date pattern?

To avoid misunderstandings and wasting everyone's time, please make it a habit to post your configuration instead of trying to describe what you're doing.

---

<div class="post-metadata">

**Author:** ![harshavardan25000](https://avatars.discourse-cdn.com/v4/letter/h/c4cdca/32.png) [@harshavardan25000](https://discuss.elastic.co/u/harshavardan25000)\
**Post date:** [April 26, 2017, 4:10pm UTC](https://discuss.elastic.co/t/pattern-for-the-below-timestamp/83731/3 "2017-04-26T16:10:53Z")

</div>

Sorry for wasting your time.

Log Line looks like" 2017-03-27 17:00:27,352 -0500|xghf|NOT\_CONNECTED|FORK\_ABORT|Call handled by another call ".  
Below is my filter design and am trying to match log timestamp to @timestamp.  
filter {  
grok {  
match =\> ["message","%{TIMESTAMP\_ISO8601:Timestamp}|%{HOSTNAME:CssVersion}|%{GREEDYDATA:msg}"]  
}  
date {  
match =\> ["timestamp", "ISO8601"]  
locale =\> en  
}  
}

For some reason timezone doesnt get parsed hence log lines fall under current system timestamp bucket.

So I tried using the below filter and i still get the same result.  
filter {  
grok {  
match =\> ["message","%{DATA:Timestamp}|%{HOSTNAME:CssVersion}|%{GREEDYDATA:msg}"]  
}  
date {  
match =\> ["timestamp", "YYYY-MM-dd HH:mm:ss,SSS zZ"]  
locale =\> en  
}

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [April 27, 2017, 5:17am UTC](https://discuss.elastic.co/t/pattern-for-the-below-timestamp/83731/4 "2017-04-27T05:17:47Z")

</div>

Seems easier to just use a csv filter to parse that log.

---

<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:** [May 25, 2017, 5:18am UTC](https://discuss.elastic.co/t/pattern-for-the-below-timestamp/83731/5 "2017-05-25T05:18:59Z")

</div>

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