# Change log level for metricbeat on elasticsearch through ECK

**URL:** <https://discuss.elastic.co/t/change-log-level-for-metricbeat-on-elasticsearch-through-eck/341091>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [August 18, 2023, 11:45am UTC](https://discuss.elastic.co/t/change-log-level-for-metricbeat-on-elasticsearch-through-eck/341091 "2023-08-18T11:45:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![b2ron](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@b2ron](https://discuss.elastic.co/u/b2ron)\
**Post date:** [August 18, 2023, 11:45am UTC](https://discuss.elastic.co/t/change-log-level-for-metricbeat-on-elasticsearch-through-eck/341091/1 "2023-08-18T11:45:57Z")

</div>

I want to change the logging level for the Metricbeat container of an Elasticsearch node installed through ECK. Is this possible or not? Here's the configuration:

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: test-elasticsearch
spec:
  monitoring:
    metrics:
      elasticsearchRefs:
        - name: test-elasticsearch
  nodeSets:
    - config:
        node.roles:
          - master
          - remote_cluster_client
          - data
          - ingest
          - transform
      count: 3
      name: test
      podTemplate:
        metadata:
          creationTimestamp: null
        spec:
          containers:
            - name: elasticsearch
              resources:
                limits:
                  cpu: 2
                  memory: 4Gi
                requests:
                  cpu: 500m
                  memory: 4Gi
            - name: metricbeat
              env:
                - name: METRICBEAT_LOGGING_LEVEL
                  value: warning
                - name: BEAT_LOGGING_LEVEL
                  value: warning
                - name: LOGGING_LEVEL
                  value: warning
                - name: logging.level
                  value: warning
  version: 8.9.0
`
```

---

<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:** [September 15, 2023, 11:46am UTC](https://discuss.elastic.co/t/change-log-level-for-metricbeat-on-elasticsearch-through-eck/341091/2 "2023-09-15T11:46:50Z")

</div>

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