# Grok handling logs with less information

**URL:** <https://discuss.elastic.co/t/grok-handling-logs-with-less-information/188814>\
**Category:** Logstash\
**Created:** [July 3, 2019, 9:53pm UTC](https://discuss.elastic.co/t/grok-handling-logs-with-less-information/188814 "2019-07-03T21:53:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_lim/32/45922_2.png) [@John\_Lim](https://discuss.elastic.co/u/John_Lim)\
**Post date:** [July 3, 2019, 9:53pm UTC](https://discuss.elastic.co/t/grok-handling-logs-with-less-information/188814/1 "2019-07-03T21:53:49Z")

</div>

Hello again, I need an assistance on how could I extract logs with less information. For instance regular logs have full information while some logs have shorter information (see below), I tried adding two formats in grok, but it seems not able to parse logs with less information. Thank you in advance.  
Example:  
Regular logs: \<164\> http\_scan: 1234567890 1 10.1x.xxx.xx x99.xx.1xx.2xx application/x-protobuf 10.xx.xxx.xx [https://example.com](https://example.com) 230 BYF ALLOWED CLEAN 2 0 0 0 0 (-) 0 - 0 - 0 [example.com](http://example.com) business [ldap0:user01] [https://example.com](https://example.com) business 0

other logs: \<164\> http\_scan: 1234567890 1 10.1x.xxx.xx x99.xx.1xx.2xx image/jpeg 10.xx.xxx.xx [https://example.com/](https://example.com/) 14067 BYF ALLOWED CLEAN 0

---

<div class="post-metadata">

**Author:** ![John\_Lim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_lim/32/45922_2.png) [@John\_Lim](https://discuss.elastic.co/u/John_Lim)\
**Post date:** [July 10, 2019, 2:56pm UTC](https://discuss.elastic.co/t/grok-handling-logs-with-less-information/188814/2 "2019-07-10T14:56:34Z")

</div>

Never mind, I figured it out. Thanks

---

<div class="post-metadata">

**Author:** ![mchaponis](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mchaponis](https://discuss.elastic.co/u/mchaponis)\
**Post date:** [July 16, 2019, 12:49pm UTC](https://discuss.elastic.co/t/grok-handling-logs-with-less-information/188814/3 "2019-07-16T12:49:21Z")

</div>

@John_Lim - Can you share what you did? I am curious to know.

Thanks.

---

<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 13, 2019, 12:49pm UTC](https://discuss.elastic.co/t/grok-handling-logs-with-less-information/188814/4 "2019-08-13T12:49:29Z")

</div>

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