# Grok not parsing any pattern

**URL:** <https://discuss.elastic.co/t/grok-not-parsing-any-pattern/262669>\
**Category:** Logstash\
**Created:** [January 29, 2021, 4:14pm UTC](https://discuss.elastic.co/t/grok-not-parsing-any-pattern/262669 "2021-01-29T16:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![werther158](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/werther158/32/83137_2.png) [@werther158](https://discuss.elastic.co/u/werther158)\
**Post date:** [January 29, 2021, 4:14pm UTC](https://discuss.elastic.co/t/grok-not-parsing-any-pattern/262669/1 "2021-01-29T16:14:02Z")

</div>

Hi, I'm trying to parse some apache logs like this:

```auto
46.105.14.53 - - [20/May/2015:21:05:15 +0000] "GET /blog/tags/puppet?flav=rss20 HTTP/1.1" 200 14872 "-" "UniversalFeedParser/4.2-pre-314-svn +http://feedparser.org/"

```

Filebeat is fetching logs and they are going through Logstash, Elasticsearch and Kibana correctly.  
Here is my logstash.conf:

```auto
input {
  beats {
    port => 5044
  }
}
filter {
    grok {
      match => {"message" => "%{IPORHOST:clientip}"}
      remove_field => ["message"]
    }
}
output {
  elasticsearch {
    hosts => ["localhost:9200"]
    index => "%{[@metadata][beat]}-%{[@metadata][version]}"
  }
}

```

Here I'm trying to use a very simple Grok pattern that works on Grok Debugger. On Kibana I have the entire "message" field as if no filter has been applied.

Any help would be really appreciated.  
Thank you, regards.

---

<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:** [February 26, 2021, 4:14pm UTC](https://discuss.elastic.co/t/grok-not-parsing-any-pattern/262669/2 "2021-02-26T16:14:18Z")

</div>

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