Coder Social home page Coder Social logo

krakend-gelf's Introduction

KrakenD-gelf

Go Report Card

A gelf (Graylog Extended Log Format) Writer for KrakenD loggers.

How to use it

This package just return a gelf writer with the configuration provided via KrakenD ExtraConfig.

You need to add the Writer to the logger writers. This example uses KrakenD-gologging.

Import the package

import "github.com/davron112/krakend-gelf"

Create a new Writer:

gelfWriter, err := gelf.NewWriter(cfg.ExtraConfig)

And add it to the logger:

gologging.NewLogger(cfg.ExtraConfig, gelfWriter...)

Configuration

Add the github_com/devopsfaith/krakend-gelf section to the service extra config.

There's 2 parameters:

  • address (This parameter is required)

    The address (including the port) of your graylog server (or any service that receives gelf inputs).

  • enable_tcp

    By default uses UDP but you can enable TCP by setting this option to true (not recommended, your performance may suffer).

Example:

"extra_config": {
  "github_com/devopsfaith/krakend-gelf": {
    "address": "myGraylogInstance:12201",
    "enable_tcp": false
  }
}

krakend-gelf's People

Contributors

taik0 avatar kpacha avatar alombarte avatar davron112 avatar deepsourcebot 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.