# Grok pattern all match but still grokparsefailure

**URL:** https://discuss.elastic.co/t/grok-pattern-all-match-but-still-grokparsefailure/65979
**Category:** Logstash
**Created:** [November 14, 2016, 1:09pm UTC](https://discuss.elastic.co/t/grok-pattern-all-match-but-still-grokparsefailure/65979 "2016-11-14T13:09:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![txisme](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@txisme](https://discuss.elastic.co/u/txisme)
#### Post date: [November 14, 2016, 1:09pm UTC](https://discuss.elastic.co/t/grok-pattern-all-match-but-still-grokparsefailure/65979/1 "2016-11-14T13:09:37Z")

</div>

Hey,

so im parsing multiline logs using filebeat and logstash.  
The multline pattern is made in filebeat like this:

```
multiline:
        pattern: '^Offset'
        negate: true
        match: after

```

one complete log looks like this:

```
Offset = 948639, Topic = LOGM, Source = NDM, Type = CreateSystemApiLog, Value = entry {
  correlationId: "gferw|NDM-5c59f6bd-9b11-4928-b5f6-6d76bcd58cd1"
  sourceId: "NDM"
  entryType: REQUEST
  entrySubType: END_POINT
  operation: READ
  user: "gferw"
  host: "10.130.16.18"
  uri: "/com.oiforum.json/ndm/network/1/endpoint/1311656127347565"
  timestamp: "2016-11-11T11:38:24.939Z"
}

```

im using [http://grokconstructor.appspot.com/do/match](http://grokconstructor.appspot.com/do/match) to test the grok patterns and the results are this:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/3f22115e5c762f2a2a9144b770ec8631c7f36b04.png)

Every field is parsed with grok patterns correctly, but the grokconstructor website still gives error.

when i apply the same patterns to logstash and filebeat and then visualize the data generated, it always appears with the tag "\_grokparsefailure" so i have no fields from the log. Why is this happening?

---

<div class="post-metadata">

### Author: ![txisme](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@txisme](https://discuss.elastic.co/u/txisme)
#### Post date: [November 14, 2016, 2:47pm UTC](https://discuss.elastic.co/t/grok-pattern-all-match-but-still-grokparsefailure/65979/2 "2016-11-14T14:47:25Z")

</div>

found the error: invisible space right after the full grok pattern -.-'

---

<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: [December 12, 2016, 2:47pm UTC](https://discuss.elastic.co/t/grok-pattern-all-match-but-still-grokparsefailure/65979/3 "2016-12-12T14:47:27Z")

</div>

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