AWS Beanstalk and Elastic Cloud Filebeat

I have a docker container running on AWS Beanstalk.

Is it possible to ingest my docker container logs into Elasticsearch (Cloud service) using Filebeats?

Could not find a proper Elastic Integration ingest option for Beanstalk Docker?

Thanks in advance.

This is my current filebeat.yml

filebeat.autodiscover:
providers:
- type: docker
templates:
- condition:
contains:
docker.container.image: mycontainer
config:
- type: docker
containers.ids:
- "${data.docker.container.id}"
exclude_lines: ["^\\s+[\\-`('.|_]"] # drop asciiart lines

processors:
- add_docker_metadata: ~

- decode_json_fields:
fields: ["message"]
target: "json"
overwrite_keys: true

output.elasticsearch:
hosts: ["elasticsearch:9200"] # point to your running elasticsearch instance
indices:
- index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"

setup.kibana:
host: "kibana:5601" # point to your running kibana instance

logging.json: true
logging.metrics.enabled: false

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