# Spurious output from Apache2 module

**URL:** <https://discuss.elastic.co/t/spurious-output-from-apache2-module/161858>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 21, 2018, 2:34pm UTC](https://discuss.elastic.co/t/spurious-output-from-apache2-module/161858 "2018-12-21T14:34:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Diggy](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@Diggy](https://discuss.elastic.co/u/Diggy)\
**Post date:** [December 21, 2018, 2:34pm UTC](https://discuss.elastic.co/t/spurious-output-from-apache2-module/161858/1 "2018-12-21T14:34:06Z")

</div>

Hello, all.

Recently, I enabled the Filebeat Apache2 module, in part to capture geoip data. That seems to be working fine. However, I notice that some output looks to be generated because of a misconfiguration somewhere (Logstash filter, perhaps. Here's the issue I'm talking about (from the error.message field :

Provided Grok expressions do not match field value: [127.0.0.1 - - [21/Dec/2018:08:29:41 -0500] "GET /server-status?auto= HTTP/1.1" 404 236 "-" "Go-http-client/1.1"]

Here's the relevant (I think) part of my Logstash filter:

> filter {  
> if [fileset][module] == "apache2" {  
> if [fileset][name] == "access" {  
> grok {  
> match =\> {  
> "message" =\> [  
> "%{IPORHOST:[apache2][access][remote\_ip]} - %{DATA:[apache2][access][user\_name]} [%{HTTPDATE:[apache2][access][time]}] "%{WORD:[apache2][access][method]} %{DATA:[apache2][access][url]} HTTP/%{NUMBER:[apache2][access][http\_version]}" %{NUMBER:[apache2][access][response\_code]} (?:%{NUMBER:apache2.access.body\_sent.bytes}|-)( "%{DATA:[apache2][access][referrer]}")?( "%{DATA:[apache2][access][agent]}")?",  
> "%{IPORHOST:[apache2][access][remote\_ip]} - %{DATA:[apache2][access][user\_name]} [%{HTTPDATE:[apache2][access][time]}] "-" %{NUMBER:[apache2][access][response\_code]} -"  
> ]  
> }  
> }
> 
> ```
> mutate {
> add_field => { "read_timestamp" => "%{@timestamp}" }
> }
> date {
> match => ["[apache2][access][time]", "dd/MMM/YYYY:H:m:s Z" ]
> remove_field => "[apache2][access][time]"
> }
> useragent {
> source => "[apache2][access][agent]"
> target => "[apache2][access][user_agent]"
> remove_field => "[apache2][access][agent]"
> }
> geoip {
> source => "[apache2][access][remote_ip]"
> target => "[apache2][access][geoip]"
> }
> }
> 
> ```
> 
> }

I can't seem to find where, or how, to eliminate that output. I tried filtering it out, but can't make it work.

Your assistance would be most appreciated. I'm happy to provide whatever additional information might be necessary.

Dimitri

---

<div class="post-metadata">

**Author:** ![Diggy](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@Diggy](https://discuss.elastic.co/u/Diggy)\
**Post date:** [December 24, 2018, 2:01pm UTC](https://discuss.elastic.co/t/spurious-output-from-apache2-module/161858/2 "2018-12-24T14:01:34Z")

</div>

Anyone on this?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [December 27, 2018, 2:30pm UTC](https://discuss.elastic.co/t/spurious-output-from-apache2-module/161858/3 "2018-12-27T14:30:41Z")

</div>

Where do you have your Logstash configuration from?

Have you tried your log in a [grok debugger](https://grokdebug.herokuapp.com)?

---

<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:** [January 24, 2019, 2:30pm UTC](https://discuss.elastic.co/t/spurious-output-from-apache2-module/161858/4 "2019-01-24T14:30:42Z")

</div>

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