# Logging now working

**URL:** <https://discuss.elastic.co/t/logging-now-working/205463>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 28, 2019, 12:46pm UTC](https://discuss.elastic.co/t/logging-now-working/205463 "2019-10-28T12:46:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoatemyjam](https://avatars.discourse-cdn.com/v4/letter/w/5f9b8f/32.png) [@whoatemyjam](https://discuss.elastic.co/u/whoatemyjam)\
**Post date:** [October 28, 2019, 12:46pm UTC](https://discuss.elastic.co/t/logging-now-working/205463/1 "2019-10-28T12:46:47Z")

</div>

I am trying to enable logging in a filebeat pod and the filebeat setings are as below

```
apiVersion: v1
kind: ConfigMap
metadata:
  name: filebeat-config
  namespace: "{{ namespace }}"
  labels:
    k8s-app: filebeat
data:
  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

    # To enable hints based autodiscover, remove `filebeat.config.inputs` configuration and uncomment this:
    #filebeat.autodiscover:
    # providers:
    # - type: kubernetes
    # hints.enabled: true

    processors:
      - add_cloud_metadata:

    cloud.id: ${ELASTIC_CLOUD_ID}
    cloud.auth: ${ELASTIC_CLOUD_AUTH}

    output.elasticsearch:
      hosts: ['${ELASTICSEARCH_HOST:elasticsearch}:${ELASTICSEARCH_PORT:9200}']
      protocol: "https"
      username: ${ELASTICSEARCH_USERNAME}
      password: ${ELASTICSEARCH_PASSWORD}
      index: "filebeat-openshift-%{[agent.version]}-%{+yyyy.MM.dd}"
    setup.template.name: "filebeat-openshift"
    setup.template.pattern: "filebeat-openshift-*"
    setup.template.overwrite: true
    setup.template.enabled: true

    logging.level: info
    logging.to_files: true
    logging.files:
      path: /usr/share/filebeat/logs
      name: filebeat
      keepfiles: 7
      permissions: 0644

```

but when I log into the pod and check /usr/share/filebeat/logs there are no logs created.  
I am trying to get logs enabled to troubleshoot index loading

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:** [November 25, 2019, 12:46pm UTC](https://discuss.elastic.co/t/logging-now-working/205463/2 "2019-11-25T12:46:48Z")

</div>

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