https://github.com/ninech/openshift-filebeat
Elastic Filebeat Container for Openshift
https://github.com/ninech/openshift-filebeat
docker docker-image filebeat openshift
Last synced: 12 months ago
JSON representation
Elastic Filebeat Container for Openshift
- Host: GitHub
- URL: https://github.com/ninech/openshift-filebeat
- Owner: ninech
- Created: 2017-03-08T14:35:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T13:50:21.000Z (over 8 years ago)
- Last Synced: 2025-07-04T12:15:43.557Z (12 months ago)
- Topics: docker, docker-image, filebeat, openshift
- Language: Makefile
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 19
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elastic Filebeat Container for Openshift
THIS IMAGE IS DEPRECATED AND WILL NOT BE UPDATED, PLEASE USE OFFICIAL [ELASTIC FILEBEATS IMAGES](https://www.elastic.co/guide/en/beats/filebeat/current/running-on-docker.html) FROM THE [ELASTIC REGISTRY](https://www.docker.elastic.co/)
Run this image in a non-openshift environment:
docker run -v filebeat.yml:/filebeat/config/filebeat.yml ninech/openshift-filebeat
## Mount configuration file from secret
The path for the configuration file is `/filebeat/config/filebeat.yml`. It has it's own directory so you can put the file into an Openshift secret and mount it on `/filebeat/config` as a volume.
```yml
apiVersion: v1
kind: ConfigMap
metadata:
name: filebeat-config
data:
filebeat.yml: |
filebeat.prospectors:
- input_type: log
paths:
- /var/log/*.log
output.console:
pretty: true
```
Then link this config map into your pods:
```yaml
apiVersion: v1
kind: Pod
metadata:
name: filebeat
spec:
containers:
- name: filebeat
image: ninech/openshift-filebeat
volumeMounts:
- name: filebeat-config-volume
mountPath: /filebeat/config
readOnly: true
volumes:
- name: filebeat-config-volume
configMap:
name: filebeat-config
```