# Losing Unparsed Logs

**URL:** <https://community.graylog.org/t/losing-unparsed-logs/1078>\
**Category:** Graylog Central (peer support)\
**Created:** [May 8, 2017, 9:43pm UTC](https://community.graylog.org/t/losing-unparsed-logs/1078 "2017-05-08T21:43:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![clarson](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/clarson/32/340_2.png) [@clarson](https://community.graylog.org/u/clarson)\
**Post date:** [May 8, 2017, 9:43pm UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/1 "2017-05-08T21:43:55Z")

</div>

At my organization, we created extractors using Grok patterns in our Graylog instance to parse our logs into fields.

I’ve been noticing in Graylog if an extractor doesn’t successfully parse a log (because the format doesn’t match the Grok pattern) the log doesn’t get written to an index. Instead, it generates an indexing failure.

This means that if a log format changes we’ll lose all our logs until we update our extractors.

Is there a way to avoid this?

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [May 9, 2017, 7:35am UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/2 "2017-05-09T07:35:29Z")

</div>

@clarson you should not loose a message if extractors are not matching the messages that are coming in.

But without knowing what you are doing exact this is hard to tell why your Installation behave this way.

regards  
Jan

---

<div class="post-metadata">

**Author:** ![clarson](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/clarson/32/340_2.png) [@clarson](https://community.graylog.org/u/clarson)\
**Post date:** [May 9, 2017, 2:36pm UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/3 "2017-05-09T14:36:40Z")

</div>

Thanks for taking a look at my question.

This happened when we upgraded from Graylog 1.3 to 2.2. We’ve been using the below Grok patterns from the marketplace to parse our firewall logs. After the upgrade all of our firewall logs stopped indexing. They wouldn’t show up in any of our dashboards, streams or searches.

I looked in the Indexing Failures page and saw that all of our firewall logs were generating failures. Changing the Grok patterns fixed this.

> **[Graylog](https://marketplace.graylog.org/addons/cc7de2f6-e0d0-4446-ac2b-309426871055)**
>
> Graylog

Just to make sure I understand, if the conditional regular expression for a extractor matches a log, but the Grok pattern does not, does the log not get indexed? See the below screenshot for an example condition we used for one of the extractors:

 ![](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/1X/010bd8cb947e63ded662d3f1c046ed8a77008053.png)

---

<div class="post-metadata">

**Author:** ![clarson](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/clarson/32/340_2.png) [@clarson](https://community.graylog.org/u/clarson)\
**Post date:** [May 9, 2017, 2:36pm UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/4 "2017-05-09T14:36:52Z")

</div>

See the below screenshot for the Indexing Failures

 ![](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/1X/5a51cb3a2c310d16b6ae9d1a8e57f4226b07b908.png)

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [May 9, 2017, 2:43pm UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/5 "2017-05-09T14:43:54Z")

</div>

@clarson how did you update?

the linked content pack might not work with 2.2 as the author did not update the readme regarding that.

it looks like you are running in the same problem like that user [over here](https://community.graylog.org/t/bug-invalid-format-05-09-17-is-malformed-at-09-17/1085/2) - and some additional that are also had posted in the Forum.

We already provide some detailed helped [here for example](https://community.graylog.org/t/graylog-2-2-update-from-2-1-error-processing-message-rawmessage/140/21).

---

<div class="post-metadata">

**Author:** ![clarson](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/clarson/32/340_2.png) [@clarson](https://community.graylog.org/u/clarson)\
**Post date:** [May 9, 2017, 3:53pm UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/6 "2017-05-09T15:53:52Z")

</div>

I updated the .repo files and updated with yum according to these instructions:  
[https://www.lisenet.com/2016/graylog-server-upgrade-from-1-3-x-to-2-0-x-on-centos-6/](https://www.lisenet.com/2016/graylog-server-upgrade-from-1-3-x-to-2-0-x-on-centos-6/)

You’re right that the content pack didn’t work with 2.2. We managed to get that part working by updating the Grok pattern.

But I’m curious if there’s something we can do so that if an extractor isn’t matching correctly, the logs still get stored in an unparsed format.

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [May 10, 2017, 5:57am UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/7 "2017-05-10T05:57:43Z")

</div>

please read the linked help from the forum.

switch over to a RAW Input - as written in the linked thread!

---

<div class="post-metadata">

**Author:** ![clarson](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/clarson/32/340_2.png) [@clarson](https://community.graylog.org/u/clarson)\
**Post date:** [May 10, 2017, 3:13pm UTC](https://community.graylog.org/t/losing-unparsed-logs/1078/8 "2017-05-10T15:13:50Z")

</div>

Oh now I understand.

I wasn’t sure if it was related the RAW input or something in the extractor configuration.

I just changed our input to RAW TCP and tested the extractors and they behaved the way you described. This fixes our problem.

Thanks so much!
