Public Repository

Last pushed: a year ago
Short Description
Contains filebeat configurable by confd
Full Description

insightsoftware/filebeat
filebeat based on insightsoftware/base
(NOTE: at the moment it only configures output hosts and reads from container folder /var/log/*.log. /etc/confd folder can be overriden with custom templates)

How to use:

docker-compose.xml:

version: '2'
services:
  logstash:
    image: logstash
    container_name: logstash
    ports:
     - "5044:5044"
    command: [logstash, -e, 'input { beats {port => 5044} } output { stdout { } }']
  filebeat:
    image: insightsoftware/filebeat:1.0.0
    container_name: filebeat
    links:
     - logstash:logstash
    volumes:
     - "var/log:/var/log"
    environment:
      FILEBEAT_LOGSTASH_HOST: "logstash:5044"

Dockerfile:

FROM insightsoftware/base:1.0.0

MAINTAINER Hubble Infrastructure <hubble.infrastructure@insighsoftware.com>

ENV FILEBEAT_SRC_SHA1=05f99d2f61fee1608d01f583a2d0737a53bbd4b5 \
    FILEBEAT_VERSION=1.1.1 

RUN set -ex \
  && apk --no-cache add --virtual .build-dependencies \
    curl \
  && curl -fsSL http://download.elastic.co/beats/filebeat/filebeat-${FILEBEAT_VERSION}-x86_64.tar.gz -o /tmp/filebeat.tar.gz \
  && cd /tmp \
  && echo "${FILEBEAT_SRC_SHA1} *filebeat.tar.gz" | sha1sum -c - \
  && tar -xzf filebeat.tar.gz \
  && cd filebeat-* \
  && cp filebeat /bin \
  && rm -rf /tmp/filebeat* \
  && mkdir /etc/filebeat \
  && mkdir -p /var/log/filebeat \
  && apk del .build-dependencies \
  && rm -rf /tmp/*
Docker Pull Command
Owner
insightsoftware

Comments (0)