All Projects → bshuster-repo → Logrus Logstash Hook

bshuster-repo / Logrus Logstash Hook

Licence: mit
ℹ️ Logstash hook for logrus

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Logrus Logstash Hook

logrus-redis-hook
Hook for Logrus which enables logging to RELK stack (Redis, Elasticsearch, Logstash and Kibana)
Stars: ✭ 33 (-78%)
Mutual labels:  hook, logstash
Useeffectreducer
useReducer + useEffect = useEffectReducer
Stars: ✭ 642 (+328%)
Mutual labels:  hacktoberfest, hook
Flutter hooks
React hooks for Flutter. Hooks are a new kind of object that manages a Widget life-cycles. They are used to increase code sharing between widgets and as a complete replacement for StatefulWidget.
Stars: ✭ 1,973 (+1215.33%)
Mutual labels:  hacktoberfest, hook
Notifme Sdk
A Node.js library to send all kinds of transactional notifications.
Stars: ✭ 1,854 (+1136%)
Mutual labels:  hacktoberfest
Pyhooked
Pure Python hotkey hook, with thanks to pyHook and pyhk
Stars: ✭ 150 (+0%)
Mutual labels:  hook
Linkfree
A free and open source alternative to LinkTree
Stars: ✭ 151 (+0.67%)
Mutual labels:  hacktoberfest
Logstash Logback Encoder
Logback JSON encoder and appenders
Stars: ✭ 1,987 (+1224.67%)
Mutual labels:  logstash
Stryker Js
Mutation testing for JavaScript and friends
Stars: ✭ 2,043 (+1262%)
Mutual labels:  hacktoberfest
Grpc Caller
An improved Node.js gRPC client
Stars: ✭ 151 (+0.67%)
Mutual labels:  hacktoberfest
Gelf Rb
Ruby GELF library (Graylog Extended Log Format)
Stars: ✭ 150 (+0%)
Mutual labels:  hacktoberfest
Android Client
An android client for the MifosX platform
Stars: ✭ 150 (+0%)
Mutual labels:  hacktoberfest
Portofino
Portofino 5 is the next generation of the open source radid web development framework Portofino. Its purpose is to help developers create modern, responsive enterprise applications with REST APIs and an Angular UI.
Stars: ✭ 150 (+0%)
Mutual labels:  hacktoberfest
Cast Sh
📟 An instance of your terminal in your browser
Stars: ✭ 151 (+0.67%)
Mutual labels:  hacktoberfest
Sympa
Sympa, Mailing List Management Software
Stars: ✭ 149 (-0.67%)
Mutual labels:  hacktoberfest
Glutton
Generic Low Interaction Honeypot
Stars: ✭ 151 (+0.67%)
Mutual labels:  hacktoberfest
Rpush
The push notification service for Ruby.
Stars: ✭ 1,886 (+1157.33%)
Mutual labels:  hacktoberfest
Inspirational Quotes
💡 A simple NPM Package which returns random Inspirational Quotes. Get your daily quote and stay motivated! ✌️ 🌸
Stars: ✭ 150 (+0%)
Mutual labels:  hacktoberfest
Yii2 File Kit
Yii2 File storage and upload kit
Stars: ✭ 150 (+0%)
Mutual labels:  hacktoberfest
Pos
Stars: ✭ 150 (+0%)
Mutual labels:  hacktoberfest
Cactus
Hyperledger Cactus is a new approach to the blockchain interoperability problem
Stars: ✭ 149 (-0.67%)
Mutual labels:  hacktoberfest

Logstash hook for logrus :walrus:

Build Status Go Report Status

Use this hook to send the logs to Logstash.

Usage

package main

import (
        "github.com/bshuster-repo/logrus-logstash-hook"
        "github.com/sirupsen/logrus"
        "net"
)

func main() {
        log := logrus.New()
        conn, err := net.Dial("tcp", "logstash.mycompany.net:8911")
        if err != nil {
                log.Fatal(err)
        }
        hook := logrustash.New(conn, logrustash.DefaultFormatter(logrus.Fields{"type": "myappName"}))

        log.Hooks.Add(hook)
        ctx := log.WithFields(logrus.Fields{
                "method": "main",
        })
        ctx.Info("Hello World!")
}

This is how it will look like:

{
    "@timestamp" => "2016-02-29T16:57:23.000Z",
      "@version" => "1",
         "level" => "info",
       "message" => "Hello World!",
        "method" => "main",
          "host" => "172.17.0.1",
          "port" => 45199,
          "type" => "myappName"
}

Maintainers

Name Github Twitter
Boaz Shuster ripcurld0 @ripcurld0

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].