Enable apache2 module in filebeat

I want to capture apache error logs and access logs in kibana.

I am using this filebeat configuration in kubernetes: https://raw.githubusercontent.com/elastic/beats/7.0/deploy/kubernetes/filebeat-kubernetes.yaml

I updated config using this guide (https://www.elastic.co/guide/en/beats/filebeat/master/configuration-filebeat-modules.html):

filebeat.yml: |-
    filebeat.config:
      inputs:
	# Mounted `filebeat-inputs` configmap:
	path: ${path.config}/inputs.d/*.yml
	# Reload inputs configs as they change:
	reload.enabled: false
      modules:
	path: ${path.config}/modules.d/*.yml
	# Reload module configs as they change:
	reload.enabled: false

    filebeat.modules:
      - module: apache2
            access:
               enabled: true

But, the module is not enabling and I cannot see error logs from my PHP application to kibana dashboard.

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