# Apache Access Logs with Filebeats-\>Logstash-\>EL\<-Kibana: Throws errors at default dashboard

**URL:** <https://discuss.elastic.co/t/apache-access-logs-with-filebeats-logstash-el-kibana-throws-errors-at-default-dashboard/313585>\
**Category:** Logstash\
**Created:** [September 2, 2022, 8:47pm UTC](https://discuss.elastic.co/t/apache-access-logs-with-filebeats-logstash-el-kibana-throws-errors-at-default-dashboard/313585 "2022-09-02T20:47:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 6, 2022, 7:26pm UTC](https://discuss.elastic.co/t/apache-access-logs-with-filebeats-logstash-el-kibana-throws-errors-at-default-dashboard/313585/7 "2022-09-06T19:26:36Z")

</div>

@SirStephanikus

Nope that is not your issue in 8.3.3

I just ran setup with

`setup.ilm.check_exists: false`

`./filebeat setup -e`

and the mappings are correct

```auto
GET _cat/indices?v
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open .ds-filebeat-8.3.3-2022.09.06-000001 u3YyG9i_Sh2XduYtAaVloQ 1 1 0 0 225b 225b

GET .ds-filebeat-8.3.3-2022.09.06-000001/
{
  ".ds-filebeat-8.3.3-2022.09.06-000001": {
    "aliases": {},
    "mappings": {
      "_meta": {
        "beat": "filebeat",
        "version": "8.3.3"
      },
      "_data_stream_timestamp": {
        "enabled": true
      },
........

        "host": {
          "properties": {
            "architecture": {
              "type": "keyword",
              "ignore_above": 1024
            },
....
            "hostname": {
              "type": "keyword", <!----- This is Correct
              "ignore_above": 1024
            },
            "id": {
              "type": "keyword",
              "ignore_above": 1024
            },

```

> [@SirStephanikus](#):
>
> It is a lab environment and it is mandatory to use filebeat AND logstash for various learning reasons. On the VM is the whole ELK stack.

Generally this mean Filebeat to process and Logstash to collect and forward as a passthrough.

> [@SirStephanikus](#):
>
> Without logstash, the dashboards work as intended. When I edit the various dashboard widgets by hand and choose the "right" field like this  
> host.name --\> host.name.keyword ... the error message for this particular field is gone.

If you want this to work you need to use this form of logastash pipeline see here...

> **[Use ingest pipelines for parsing | Logstash Reference \[8.3\] | Elastic](https://www.elastic.co/guide/en/logstash/8.3/use-ingest-pipelines.html)**

Filebeat(Module) -\> Logstash (Collect / Forward) -\> Elasticsearch is very common and works great...

Because you are not properly calling the ingest pipeline the data fields are not being properly set.

```auto
input {
  beats {
    port => 5044
  }
}

output {
  if [@metadata][pipeline] {
    elasticsearch {
      hosts => "https://061ab24010a2482e9d64729fdb0fd93a.us-east-1.aws.found.io:9243"
      manage_template => false
      index => "%{[@metadata][beat]}-%{[@metadata][version]}" 
      action => "create" 
      pipeline => "%{[@metadata][pipeline]}" 
      user => "elastic"
      password => "secret"
    }
  } else {
    elasticsearch {
      hosts => "https://061ab24010a2482e9d64729fdb0fd93a.us-east-1.aws.found.io:9243"
      manage_template => false
      index => "%{[@metadata][beat]}-%{[@metadata][version]}" 
      action => "create"
      user => "elastic"
      password => "secret"
    }
  }
}

```

Glad you are digging in deep but you are missing basic concepts of correct mappings, writing data, setup, logstash as a passthrough, ingest pipeline...

Of course you can do all the parsing in logstasgh yourself but you would need to duplicate _ **ALL** _ the logic of the ingest pipeline and make sure all the proper field are set if you want the dashboard to work...

I just made

```auto
GET _ingest/pipeline/filebeat-8.3.3-apache-access-pipeline

```

Filebeat (Apache Module) -\> Logstash(passthroug) -\> Elasticsearch work with the default dashboards no problem... works great

If you want to do that it is pretty easy

- Clean Up everything
- Point filebeat at elasticsearch and run setup
- Then Create a logstash conf that I referenced above working with modules.
- Start logstash
- Point Filebeat to Logstash
- Start Filebeat
- Go Look at Dashboards

I wrote about this many times..

> [@Filebeat modules via Logstash](https://discuss.elastic.co/t/filebeat-modules-via-logstash/263612/2):
>
> Hi @st1988 Welcome the community and thanks for trying the Elastic Stack. It can be a bit challenging the first time you enter into the stack we are working to make this easier with our new feet So here is what I do Macro I make Filebeat to Elasticsearch Work direct first then I route thought Logstash.... if you can not do that thats ok but that is the best way to check if every thing works before routing through logstash 1st) clean up if you have any filbeat indices as the may be not setup…

Just make sure you use the correct logstash conf above.

---

_[View the full topic](https://discuss.elastic.co/t/apache-access-logs-with-filebeats-logstash-el-kibana-throws-errors-at-default-dashboard/313585)._
