# How to write the pattern for below log

**URL:** <https://discuss.elastic.co/t/how-to-write-the-pattern-for-below-log/81004>\
**Category:** Logstash\
**Created:** [April 3, 2017, 1:08pm UTC](https://discuss.elastic.co/t/how-to-write-the-pattern-for-below-log/81004 "2017-04-03T13:08:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagadees](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jagadees](https://discuss.elastic.co/u/jagadees)\
**Post date:** [April 3, 2017, 1:08pm UTC](https://discuss.elastic.co/t/how-to-write-the-pattern-for-below-log/81004/1 "2017-04-03T13:08:06Z")

</div>

"165.214.4.20 - - [27/Mar/2017:23:15:38 -0400] 'POST /servlet/rcopia.servlet.EngineServlet HTTP/1.1' 200 1123 23 - 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)'"

---

<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 3, 2017, 1:57pm UTC](https://discuss.elastic.co/t/how-to-write-the-pattern-for-below-log/81004/2 "2017-04-03T13:57:34Z")

</div>

That's very similar to an Apache Combined log, defined here:

> <https://github.com/logstash-plugins/logstash-patterns-core/blob/v4.1.0/patterns/httpd>

---

<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 1, 2017, 1:57pm UTC](https://discuss.elastic.co/t/how-to-write-the-pattern-for-below-log/81004/3 "2017-05-01T13:57:44Z")

</div>

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