Giter VIP home page Giter VIP logo

newrelic-fluentd-docker's Introduction

Fluentd Docker Image for New Relic Logs

newrelic-fluentd-docker is a custom Docker image that runs Fluentd, listens for log events from containers running the Fluentd logging driver, and forwards them to New Relic. The image can be customized to support additional use cases (e.g. tailing files on a container host, receiving and forwarding syslog input).

Usage

Default Fluentd Configuration

The command below configures the container to receive and forward log events from other Docker containers running the Fluentd logging driver:

docker run --name="newrelic-fluentd-docker" --restart=always -d -p 24224:24224 \
-e "API_KEY=<YOUR LICENSE KEY>" -e "BASE_URI=<YOUR HTTP ENDPOINT>" \ 
-e "LOG_LEVEL=<YOUR DEFAULT LOG LEVEL>" newrelic/newrelic-fluentd-docker:latest

Custom Fluentd Configuration

  1. Clone this repository:
  $ git clone https://github.com/newrelic/newrelic-fluentd-docker
  1. Replace the default fluent.conf with your custom Fluentd configuration.
  2. Build your custom Fluentd image:
docker build . -t newrelic-fluentd-docker

Configuration

Environment Variables

Property Description Default Value Required or Optional
API_KEY Your New Relic license key - Required
BASE_URI New Relic ingestion endpoint https://log-api.newrelic.com/log/v1 Optional
LOG_LEVEL Fluentd log level warn Optional

newrelic-fluentd-docker's People

Contributors

mnevilleoneill avatar zuluecho9 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.