ibrows/openshift-filebeat

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

Homepage:

Size: 2

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Elastic Filebeat Container for Openshift

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.

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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.