# Custom Logs doesn't works with ECK

**URL:** <https://discuss.elastic.co/t/custom-logs-doesnt-works-with-eck/358921>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [May 7, 2024, 12:50pm UTC](https://discuss.elastic.co/t/custom-logs-doesnt-works-with-eck/358921 "2024-05-07T12:50:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aalagia90](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aalagia90/32/134226_2.png) [@aalagia90](https://discuss.elastic.co/u/aalagia90)\
**Post date:** [May 7, 2024, 12:50pm UTC](https://discuss.elastic.co/t/custom-logs-doesnt-works-with-eck/358921/1 "2024-05-07T12:50:02Z")

</div>

Hi,  
i have tried to install this solution [cloud-on-k8s/config/recipes/elastic-agent/fleet-custom-logs-integration.yaml at main · elastic/cloud-on-k8s · GitHub](https://github.com/elastic/cloud-on-k8s/blob/main/config/recipes/elastic-agent/fleet-custom-logs-integration.yaml) but the package custom logs is not present in the elk policy. When the kibana start i have seen this error

 ![immagine](https://us1.discourse-cdn.com/elastic/original/3X/9/8/98d5a53a4192067a91d1c071e1521bc02d74456e.png)

The version that i use of components are

kibana,elastic,fleet,elastic-agent : 8.13.2  
eck operator: 2.12  
log: 2.3.1

**The configuration works until log 1.1.2 from 2.0.0 doen't works**

This is my yaml file

```auto
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana
spec:
  version: 8.13.2
  count: 1
  elasticsearchRef:
    name: elasticsearch
  config:
    xpack.fleet.agents.elasticsearch.hosts: ["https://elasticsearch-es-http.default.svc:9200"]
    xpack.fleet.agents.fleet_server.hosts: ["https://fleet-server-agent-http.default.svc:8220"]
    xpack.fleet.packages:
    - name: system
      version: latest
    - name: elastic_agent
      version: latest
    - name: fleet_server
      version: latest
    - name: log
      version: latest  
    xpack.fleet.agentPolicies:
    - name: Fleet Server on ECK policy
      id: eck-fleet-server
      namespace: default
      monitoring_enabled:
      - logs
      - metrics
      unenroll_timeout: 900
      package_policies:
      - name: fleet_server-1
        id: fleet_server-1
        package:
          name: fleet_server
    - name: Elastic Agent on ECK policy
      id: eck-agent
      namespace: default
      monitoring_enabled:
      - logs
      - metrics
      unenroll_timeout: 900
      package_policies:
      - name: system-1
        id: system-1
        package:
          name: system
      - package:
          name: log
        name: log-1
        inputs:
        - type: logfile
          enabled: true
          streams:
          - data_stream:
              dataset: log.log
            enabled: true
            vars:
            - name: paths
              value:
              - '/var/log/containers/*${kubernetes.container.id}.log'
            - name: custom
              value: |
                symlinks: true
                condition: ${kubernetes.namespace} == 'default'
---

```

Thank you very much

---

<div class="post-metadata">

**Author:** ![BarS](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@BarS](https://discuss.elastic.co/u/BarS)\
**Post date:** [July 16, 2024, 7:47am UTC](https://discuss.elastic.co/t/custom-logs-doesnt-works-with-eck/358921/2 "2024-07-16T07:47:23Z")

</div>

not necessary to use "Log" for integration Kubernetes Log Container.

Try this 🙂

```auto
    - name: Elastic_Agent_on_ECK_policy
      id: eck-agent
      namespace: debug
      monitoring_enabled:
      - logs
      - metrics
      unenroll_timeout: 900
      package_policies:
      - package:
          name: system
        name: system-1
      - package:
          name: kubernetes
        name: kubernetes-1

```
