Name: openshift-filebeat
Owner: PwC Experience Center
Description: Elastic Filebeat Container for Openshift
Created: 2017-03-29 19:32:38.0
Updated: 2017-03-20 06:39:22.0
Pushed: 2017-03-30 13:19:41.0
Size: 2
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Run this image in a non-openshift environment:
docker run -v filebeat.yml:/filebeat/config/filebeat.yml ninech/openshift-filebeat
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.
ersion: v1
: ConfigMap
data:
me: filebeat-config
:
lebeat.yml: |
filebeat.prospectors:
- input_type: log
paths:
- /var/log/*.log
output.console:
pretty: true
Then link this config map into your pods:
ersion: v1
: Pod
data:
me: filebeat
:
ntainers:
- name: filebeat
image: ninech/openshift-filebeat
volumeMounts:
- name: filebeat-config-volume
mountPath: /filebeat/config
readOnly: true
lumes:
- name: filebeat-config-volume
configMap:
name: filebeat-config