Elastic agent is not sending logs to Elastic search

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.

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