# Log parsing of TIMeSTAMP Not working as expected

**URL:** <https://discuss.elastic.co/t/log-parsing-of-timestamp-not-working-as-expected/189711>\
**Category:** Logstash\
**Created:** [July 10, 2019, 10:08am UTC](https://discuss.elastic.co/t/log-parsing-of-timestamp-not-working-as-expected/189711 "2019-07-10T10:08:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvijaykumarreddy463](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cvijaykumarreddy463](https://discuss.elastic.co/u/cvijaykumarreddy463)\
**Post date:** [July 10, 2019, 10:08am UTC](https://discuss.elastic.co/t/log-parsing-of-timestamp-not-working-as-expected/189711/1 "2019-07-10T10:08:11Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9ae019b5fed878a708f47a51f2d623ec6651fcf5.png)

Please check and give me the solution for it...  
Sample Data: WARN | wrapper | 2019/06/14 03:17:14 | The "wrapper.java.additional.2" property was redefined on line #84 of configuration file: C:\Rockwell\IOServerES\conf\wrapper.conf

Tried Pattern: %{LOGLEVEL:level:tag}.....%{DATA:component:tag}......./|%{TIMESTAMP\_ISO8601:timestamp}%{SPACE}%{GREEDYDATA:message}

Output sample: {  
"level": [  
"WARN"  
],  
"component": [  
"wrapper "  
],  
"timestamp": [  
null  
],  
"message": [  
null  
]  
}

Expected:  
{  
"level": [  
"WARN"  
],  
"component": [  
"wrapper "  
],  
"timestamp": [  
"2019/06/14 03:17:14 "  
],  
"message": [  
"The "wrapper.java.additional.2" property was redefined on line #84 of configuration file: C:\Rockwell\IOServerES\conf\wrapper.conf"  
]  
}

---

<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:** [July 10, 2019, 2:02pm UTC](https://discuss.elastic.co/t/log-parsing-of-timestamp-not-working-as-expected/189711/2 "2019-07-10T14:02:12Z")

</div>

I would guess you failed to escape your | with , so that they are being interpreted as alternation rather than literal | characters.

---

<div class="post-metadata">

**Author:** ![cvijaykumarreddy463](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@cvijaykumarreddy463](https://discuss.elastic.co/u/cvijaykumarreddy463)\
**Post date:** [July 11, 2019, 2:57am UTC](https://discuss.elastic.co/t/log-parsing-of-timestamp-not-working-as-expected/189711/3 "2019-07-11T02:57:36Z")

</div>

At the place of **component** | escaped know...but why the timestap not collection data.

---

<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:** [August 8, 2019, 2:57am UTC](https://discuss.elastic.co/t/log-parsing-of-timestamp-not-working-as-expected/189711/4 "2019-08-08T02:57:37Z")

</div>

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