# I made some multi-arch filebeat alpine images

**URL:** <https://discuss.elastic.co/t/i-made-some-multi-arch-filebeat-alpine-images/259920>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 30, 2020, 9:17pm UTC](https://discuss.elastic.co/t/i-made-some-multi-arch-filebeat-alpine-images/259920 "2020-12-30T21:17:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Norrsken](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/martin_norrsken/32/72902_2.png) [@Martin\_Norrsken](https://discuss.elastic.co/u/Martin_Norrsken)\
**Post date:** [December 30, 2020, 9:17pm UTC](https://discuss.elastic.co/t/i-made-some-multi-arch-filebeat-alpine-images/259920/1 "2020-12-30T21:17:48Z")

</div>

I've been building filebeat for alpine to run as a sidecar to other containers (specifically for shipping traefik access logs) and I have to say that the build process is overcomplicated with dependencies all over the place and impossible to run in docker-in-docker.

I created a more streamlined build however I have no idea if any modules except traefik and standard inputs really work. Especially since I'm running as user "nobody". But maybe it can help someone...

If anyone want to try it out the images are at

> **[Docker Hub](https://hub.docker.com/repository/docker/mrnr91/filebeat-alpine)**

  
and the source can be found at  

> **[mnorrsken/filebeat-alpine](https://github.com/mnorrsken/filebeat-alpine)**
>
> Elastic filebeat docker image with alpine base. Contribute to mnorrsken/filebeat-alpine development by creating an account on GitHub.

This is roughly how I use it with traefik helm chart:  
values.yml:

```auto
...
deployment:
  additionalContainers:
    - name: filebeat-traefik
      image: mrnr91/filebeat-alpine:v7.10.1
      imagePullPolicy: Always
      args: ["--modules","traefik","-M", "traefik.access.var.paths=[/tmp/access.log]"]
      env:
        - name: ELASTICSEARCH_HOSTS
          value: es.svc.local:9200
      volumeMounts:
        - name: tmp
          mountPath: /tmp
...
additionalArguments:
  - "--accesslog=true"
  - "--accesslog.filepath=/tmp/access.log"
...

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 27, 2021, 11:18pm UTC](https://discuss.elastic.co/t/i-made-some-multi-arch-filebeat-alpine-images/259920/2 "2021-01-27T23:18:05Z")

</div>

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