Sign inSign up

ninech/openshift-filebeat

By ninech

Updated over 8 years ago

Filebeat image that runs on Openshift.

Image
1

100K+

ninech/openshift-filebeat repository overview

Elastic Filebeat Container for Openshift

THIS IMAGE IS DEPRECATED AND WILL NOT BE UPDATED, PLEASE USE OFFICIAL ELASTIC FILEBEATS IMAGES FROM THE ELASTIC REGISTRY

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.

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:

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

Tag summary

Content type

Image

Digest

Size

50.8 MB

Last updated

over 8 years ago

docker pull ninech/openshift-filebeat