Code Monkey home page Code Monkey logo

docker-fluentd-logentries's Introduction

Docker-Fluentd-Logentries: Forward logs to LogEntries

What

This container accepts logs using the secure forwarding plugin and forwards to a logentries account based on the tag of the log, using a modifed version of fluent-plugin-logentries

docker run --name fluentd_logentries -d -v /var/lib/docker/containers:/var/lib/docker/containers -p 24284 nathanpower/fluentd-logentries

Logentries tokens can be defined in logentries-token.conf (yaml) file.

--- 
application: 
  log: LOGENTRIES_TOKEN
  access: ANOTHER-LOGENTRIES-TOKEN (*)
  error: ANOTHER-LOGENTRIES-TOKEN-1 (*)
system: 
  log: LOGENTRIES_TOKEN
  access: ANOTHER-LOGENTRIES-TOKEN (*)
  error: ANOTHER-LOGENTRIES-TOKEN-1 (*)

(*) access and error are optional, if you don't use multiple log per host just provide an app token.

This file is read on changes, it allows on fly modifications.

Usage

	<source>
		type secure_forward
		shared_key         secret_string
		self_hostname      server.fqdn.local  # This fqdn is used as CN (Common Name) of certificates
		cert_auto_generate yes                # This parameter MUST be specified
	</source>

    <match pattern>
      type logentries
      config_path /path/to/logentries-tokens.conf
    </match>

Parameters

type (required)

The value must be logentries.

config_path (required)

Path of your configuration file, e.g. /opt/logentries/tokens.conf

protocol

The default is tcp.

use_ssl

Enable/disable SSL for data transfers between Fluentd and Logentries. The default is true.

port

Only in case you don't use SSL, the value must be 80, 514, or 10000. The default is 20000 (SSL)

max_retries

Number of retries on failure.

tag_access_log, tag_error_log

This is use in case you tag your access/error log and want them to be push into another log.

docker-fluentd-logentries's People

Contributors

nathanpower avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.