# Apache2 module | Filebeat - No results found

**URL:** <https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 21, 2018, 4:36pm UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897 "2018-02-21T16:36:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [February 21, 2018, 4:36pm UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/1 "2018-02-21T16:36:30Z")

</div>

I'm trying to [Configure the module](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-module-apache2.html#configuring-apache2-module) and even though I see events inside of my `%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}` whenever I open `Filebeat Apache2 Dashboard` via Kibana all I see is:

> No results found

```
# cat /etc/filebeat/modules.d/apache2.yml 
- module: apache2
  # Access logs
  access:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths: ["/var/log/apache2/*access.log*"]

  # Error logs
  error:
    enabled: true

    # Set custom paths for the log files. If left empty,
    # Filebeat will choose the paths depending on your OS.
    var.paths: ["/var/log/apache2/*error.log*"]
# 
# ls -ld /var/log/apache2/*access.log* | head -1
-rw-r----- 1 root adm 764580 Feb 21 16:37 /var/log/apache2/access.log
# ls -ld /var/log/apache2/*error.log* | head -1
-rw-r----- 1 root adm 725 Feb 21 06:25 /var/log/apache2/error.log
# 

```

recap: events makes into elasticsearch, however I'm unable to see any via Kibana's dashboard...

Please advise.

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [February 22, 2018, 6:10pm UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/2 "2018-02-22T18:10:42Z")

</div>

Which time range you have set. Note that the Filebeat module parses the timestamps from the logs, so they can be quite a bit old.

If increasing the time rage to 1y or so doesn't help, try:

- checking the data in the Discover tab.
- If nothing is in the Discover tab as well, try querying the data with Kibana Console

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [February 22, 2018, 8:03pm UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/3 "2018-02-22T20:03:44Z")

</div>

- I do see events (in `filebeat-*`) via `Discover` even within `Last 15 minutes`.

one of the doc:

```
{
  "_index": "filebeat-6.2.1-2018.02.24",
  "_type": "doc",
  "_id": "4bpxxmEB9U9uoDsEohOO",
  "_version": 1,
  "_score": null,
  "_source": {
    "host": "web",
    "@timestamp": "2018-02-24T06:13:10.303Z",
    "@version": "1",
    "prospector": {
      "type": "log"
    },
    "tags": [
      "beats_input_codec_plain_applied"
    ],
    "fileset": {
      "name": "access",
      "module": "apache2"
    },
    "offset": 1771291,
    "beat": {
      "name": "web",
      "version": "6.2.1",
      "hostname": "web0"
    },
    "source": "/var/log/apache2/access.log",
    "message": "127.0.0.1 - - [24/Feb/2018:06:13:09 +0000] \"GET / HTTP/1.1\" 200 3315 \"-\" \"Go-http-client/1.1\""
  },
  "fields": {
    "@timestamp": [
      "2018-02-24T06:13:10.303Z"
    ]
  },
  "sort": [
    1519452790303
  ]
}

```

Please advise.

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [March 9, 2018, 1:58pm UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/5 "2018-03-09T13:58:04Z")

</div>

The events are there but the messages are not parsed. It looks like you are sending these events through Logstash? Unfortunately it's currently not too easy to run Filebeat modules with Logstash, see: [https://www.elastic.co/guide/en/logstash/current/filebeat-modules.html](https://www.elastic.co/guide/en/logstash/current/filebeat-modules.html)

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [March 9, 2018, 8:06pm UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/6 "2018-03-09T20:06:43Z")

</div>

@tudor I followed that when I set this up filebeat to work with logstash.

```
# filebeat test output
logstash: app11:5044...
  connection...
    parse host... OK
    dns lookup... OK
    addresses: 10.142.0.6
    dial up... OK
  TLS... WARN secure connection disabled
  talk to server... OK
# 

```

as you saw earlier events make all the way into elasticsearch, it's not shipping where it fails it's parsing...

any help with how address that would be appreciate it)

---

<div class="post-metadata">

**Author:** ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)\
**Post date:** [March 10, 2018, 3:44pm UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/7 "2018-03-10T15:44:01Z")

</div>

If you followed that guide, then the parsing needs to be done by Logstash. Can you paste the Logstash config here?

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [March 11, 2018, 1:55am UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/8 "2018-03-11T01:55:56Z")

</div>

ok, my missing part: [Configuration Examples | Logstash Reference](https://www.elastic.co/guide/en/logstash/current/logstash-config-for-filebeat-modules.html#parsing-apache2)

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:** [April 8, 2018, 1:56am UTC](https://discuss.elastic.co/t/apache2-module-filebeat-no-results-found/120897/9 "2018-04-08T01:56:30Z")

</div>

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