# Elastic agent is not sending logs to Elastic search

**URL:** <https://discuss.elastic.co/t/elastic-agent-is-not-sending-logs-to-elastic-search/379500>\
**Category:** Elastic Agent\
**Created:** [June 26, 2025, 5:06am UTC](https://discuss.elastic.co/t/elastic-agent-is-not-sending-logs-to-elastic-search/379500 "2025-06-26T05:06:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sudhir\_Takale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sudhir_takale/32/140768_2.png) [@Sudhir\_Takale](https://discuss.elastic.co/u/Sudhir_Takale)\
**Post date:** [June 26, 2025, 5:06am UTC](https://discuss.elastic.co/t/elastic-agent-is-not-sending-logs-to-elastic-search/379500/1 "2025-06-26T05:06:53Z")

</div>

Hello everyone,  
I have springboot application & elastic agent running on same container in aws ECS farget service.  
I am getting APM traces, through APM java agent jar file. But I am not getting application logs .  
My application writes logs in file as well as on console.  
Can anyone help me to findout the issue.

On EC2 i have kibana, elasticsearch installed. I am using standalone elastic server.

```auto
outputs:
  default:
    type: elasticsearch
    hosts: ["http:<elastic search ip>:9200"]
    ssl.verification_mode: none

agent:
  monitoring:
    enabled: true
    logs: true
    metrics: true
  logging:
    level: info
    to_files: true
    files:
      path: /var/log/elastic-agent

inputs:
  - type: filestream
    id: spring-app-logs
    data_stream:
      dataset: spring.logs
      namespace: production
    paths:
      - "/app/logs/app.log"
      - "/logs/app.log"
      - "/dev/stdout"

  - type: filestream
    id: container-logs
    data_stream:
      dataset: container.logs
      namespace: production
    paths:
      - "/proc/1/fd/1"
      - "/proc/1/fd/2"

  - type: system/metrics
    id: system-metrics
    data_stream:
      namespace: production
    streams:
      - metricsets: ["cpu"]
        data_stream.dataset: system.cpu
        period: 10s
      - metricsets: ["memory"]
        data_stream.dataset: system.memory
        period: 10s
      - metricsets: ["network"]
        data_stream.dataset: system.network
        period: 10s
      - metricsets: ["filesystem"]
        data_stream.dataset: system.filesystem
        period: 30s

  - type: apm
    server_url: "http://<APM serverIp>:8200"
    data_stream:
      namespace: production

```
