Skip to content

22phuber/filebeat_docker_elastic_cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

filebeat_docker_elastic_cloud

Read the Blog Post: https://supportblog.ch/filebeat-docker-image-mit-elastic-cloud/

Build Filebeat Base Image

cd filebeat_base
# Build filebeat base container
# Check version in Dockerfile
filebeatVersion=7.6.1
docker build -t "base/filebeat:${filebeatVersion}" --no-cache .


# Optional:
# Tags for AWS ECR
docker tag "base/filebeat:${filebeatVersion}" "<aws_account_id>.dkr.ecr.<region>.amazonaws.com/base/filebeat:${filebeatVersion}"

Build Filebeat Image

cd filebeat_project
docker build -t "<project_name>/filebeat:${tagVersion}" --no-cache .


# Optional:
# Tags for AWS ECR
docker tag "<project_name>/filebeat:${tagVersion}" "<aws_account_id>.dkr.ecr.<region>.amazonaws.com/<project_name>/filebeat:${tagVersion}"
# AWS ECR login (already logged in? => skip this step)
eval $(aws ecr get-login --no-include-email)
# push
docker push "<aws_account_id>.dkr.ecr.<region>.amazonaws.com/<project_name>/filebeat:${tagVersion}"

About

Filebeat Docker Image for Elastic Cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published