{"id":21258961,"url":"https://github.com/komljen/docker-filebeat","last_synced_at":"2025-07-11T02:32:57.021Z","repository":{"id":71400170,"uuid":"90138107","full_name":"komljen/docker-filebeat","owner":"komljen","description":"https://www.elastic.co/products/beats/filebeat","archived":false,"fork":false,"pushed_at":"2018-09-25T14:31:52.000Z","size":19,"stargazers_count":9,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T19:34:23.970Z","etag":null,"topics":["docker","dockerfile","elastic","filebeat","kubernetes"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/komljen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-03T10:41:41.000Z","updated_at":"2023-08-29T11:34:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"d421fa41-4a62-4c6c-857e-912c1db43339","html_url":"https://github.com/komljen/docker-filebeat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/komljen/docker-filebeat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdocker-filebeat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdocker-filebeat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdocker-filebeat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdocker-filebeat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komljen","download_url":"https://codeload.github.com/komljen/docker-filebeat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdocker-filebeat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264712912,"owners_count":23652686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","dockerfile","elastic","filebeat","kubernetes"],"created_at":"2024-11-21T04:11:36.328Z","updated_at":"2025-07-11T02:32:57.015Z","avatar_url":"https://github.com/komljen.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filebeat 6.x kubernetes ready docker image\n\n## Modifying filebeat.yml\nIn order to overwrite the values for ```filebeat.yml``` which is a part of the ```maskeda/filebeat``` docker image with the Kuberntes ConfigMap (filebeat-config.yml), create the resource first:\n```\nkubectl apply -f filebeat-config.yml --namespace=default\n```\n\nThen create filebeat `DaemonSet` which will mount above config:\n```\nkubectl apply -f filebeat-ds.yml --namespace=default\n```\n\n## Sample filebeat-ds.yml\nPlease replace ```HOSTNAME:PORT``` with the desired hostname/port number and ```INDEX_VALUE``` with the preferred index prefix. The format of the INDEX_VALUE string can also be modified, please check the filebeat documentation for more info.  Please let the project know if any addtional options need to be added to the filebeat-ds.yml.\n```\napiVersion: extensions/v1beta1\nkind: DaemonSet\nmetadata:\n  name: filebeat\n  labels:\n    app: filebeat\nspec:\n  template:\n    metadata:\n      labels:\n        app: filebeat\n      name: filebeat\n    spec:\n      containers:\n        - name: filebeat\n          image: komljen/filebeat\n          resources:\n            limits:\n              cpu: 50m\n              memory: 50Mi\n          env:\n            - name: LOGSTASH_HOSTS\n              value: HOSTNAME:PORT\n            - name: LOG_LEVEL\n              value: debug\n            - name: INDEX_PREFIX\n              value: \"INDEX_VALUE-%{[@metadata]}-%{+YYYY.MM.dd}\"\n          volumeMounts:\n            - name: config\n              mountPath: /etc/filebeat\n            - name: varlog\n              mountPath: /var/log/containers\n            - name: varlogpods\n              mountPath: /var/log/pods\n              readOnly: true\n            - name: varlibdockercontainers\n              mountPath: /var/lib/docker/containers\n              readOnly: true\n      terminationGracePeriodSeconds: 30\n      volumes:\n      - name: config\n        configMap:\n          name: filebeat-config\n          items:\n          - key: filebeat.yml\n            path: filebeat.yml\n        - name: varlog\n          hostPath:\n            path: /var/log/containers\n        - name: varlogpods\n          hostPath:\n            path: /var/log/pods\n        - name: varlibdockercontainers\n          hostPath:\n            path: /var/lib/docker/containers\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomljen%2Fdocker-filebeat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomljen%2Fdocker-filebeat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomljen%2Fdocker-filebeat/lists"}