# Trying to Get Grok Pattern for Error.log

**URL:** <https://discuss.elastic.co/t/trying-to-get-grok-pattern-for-error-log/280670>\
**Category:** Logstash\
**Created:** [August 6, 2021, 4:37pm UTC](https://discuss.elastic.co/t/trying-to-get-grok-pattern-for-error-log/280670 "2021-08-06T16:37:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shailesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shailesh/32/92646_2.png) [@shailesh](https://discuss.elastic.co/u/shailesh)\
**Post date:** [August 6, 2021, 4:37pm UTC](https://discuss.elastic.co/t/trying-to-get-grok-pattern-for-error-log/280670/1 "2021-08-06T16:37:33Z")

</div>

Hello Guts - i am trying to write a Grok Pattern for the below log file  
20210621.00h02m29s RESPONSE: sent 127.0.0.1 status 502 (Tunnel Connection Failed) for '[xxxx.com:443/](http://xxxx.com:443/)  
for the above log line i am trying to parse  
date.time = 20210621.00h02m29s  
-elapsed status: = status 502  
message = Tunnel Connection Failed  
I have tried multiple ways - but i am getting compile error's  
any suggestions on this ?  
Thank you in Advance-

---

<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:** [September 3, 2021, 4:37pm UTC](https://discuss.elastic.co/t/trying-to-get-grok-pattern-for-error-log/280670/2 "2021-09-03T16:37:58Z")

</div>

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