# Grok filter isn't working but working in kibana grok debugger

**URL:** <https://discuss.elastic.co/t/grok-filter-isnt-working-but-working-in-kibana-grok-debugger/329755>\
**Category:** Logstash\
**Created:** [April 11, 2023, 2:44pm UTC](https://discuss.elastic.co/t/grok-filter-isnt-working-but-working-in-kibana-grok-debugger/329755 "2023-04-11T14:44:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ira-zaya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ira-zaya/32/115622_2.png) [@ira-zaya](https://discuss.elastic.co/u/ira-zaya)\
**Post date:** [April 11, 2023, 2:44pm UTC](https://discuss.elastic.co/t/grok-filter-isnt-working-but-working-in-kibana-grok-debugger/329755/1 "2023-04-11T14:44:21Z")

</div>

Hi. I have the following logstash configuration:

```auto
filter {
    if "platform1" in [tags] { 
        grok {
          match => { 
            "message" => ['%{TIMESTAMP_ISO8601:timestamp}? ?\[?L?:? ?%{LOGLEVEL:logLevel}?\]? ?\[?O?:? ?(%{USERNAME:O}|%{NUMBER:O})?\]? ?\[?I?:? ?(%{USERNAME:I}|%{NUMBER:I})?\]? ?\[?U?:? ?(%{EMAILADDRESS:U}|%{NUMBER:U})?\]? ?\[?S?:? ?(%{USERNAME:S}|%{NUMBER:S})?\]? ?\[?P?:? ?(%{USERNAME:P}|%{NUMBER:P})?\]? ?\[?T?:? ?(%{USERNAME:T}|%{NUMBER:T})?\]? ?%{GREEDYDATA:logMessage}'] 
          }
        } 
    } else if "blob_logs" in [fields][logType] {
        grok {
          match => {
            "message" => ['#?%{WORD}?:?%{TIMESTAMP_ISO8601:timestamp}? ?#?%{WORD}?:?%{WORD:timezone}? ?#?%{WORD}?:?%{LOGLEVEL:logLevel}? ?#?%{WORD}?:?%{HOSTNAME:host}? ?#?%{WORD}?:?%{IP:ip}? ?#?%{WORD}?:?%{NUMBER:transaction_id}? ?#?%{WORD}?:?%{NUMBER:request_id}? ?#?%{WORD}?:?%{NUMBER:ownservice_id}? ?#?%{WORD}?:?%{NUMBER:destservice_id}? ?#?%{WORD}?:?%{WORD:type}? ?#?%{WORD}?:?%{USERNAME:class}? ?#?%{GREEDYDATA:message}'] 
          }
        }
    } else {
        grok { 
        match => { "message" => ['%{LOGLEVEL:logLevel}%{GREEDYDATA:logMessage}'] } 
        } 
    }
}

```

And I'm trying to parse smth like this:

```auto
#Date:2023-03-30 14:27:03.818#TimeZone:UTC#Severity:INFO #Host:#IP:#TransactionID:#RequestID:#OwnServiceID:#DestServiceID:#Type:#Class:com..azure.controller.BlobController 169#Method:uploadBlob#Message:file instance created

```

In grok debugger everything is going well, but in kibana I see just unparsed message. There is no \_grokparsefailure tag.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/e/f/efe6caf9f54d50cf02e7c9d072c6be7c65586b80.png)

What I'm doing wrong? 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:** [May 9, 2023, 2:44pm UTC](https://discuss.elastic.co/t/grok-filter-isnt-working-but-working-in-kibana-grok-debugger/329755/2 "2023-05-09T14:44:57Z")

</div>

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