All Projects → rkcpi → logback-gelf-appender

rkcpi / logback-gelf-appender

Licence: Apache-2.0 license
Logback appender that sends GELF messages

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to logback-gelf-appender

NLog.Targets.GraylogHttp
NLog target that pushes log messages to Graylog using the Http input.
Stars: ✭ 17 (-55.26%)
Mutual labels:  gelf, graylog
Logstash Logback Encoder
Logback JSON encoder and appenders
Stars: ✭ 1,987 (+5128.95%)
Mutual labels:  logback, logback-appender
Logback Gelf
Logback appender for sending GELF messages with zero additional dependencies.
Stars: ✭ 146 (+284.21%)
Mutual labels:  logback, graylog
gelf-extensions-logging
GELF provider for Microsoft.Extensions.Logging
Stars: ✭ 81 (+113.16%)
Mutual labels:  gelf, graylog
logspout-gelf
Logspout with GELF adapter
Stars: ✭ 16 (-57.89%)
Mutual labels:  gelf, graylog
slack-webhook-appender
Logback appender which posts logs to slack via incoming webhook.
Stars: ✭ 16 (-57.89%)
Mutual labels:  logback, logback-appender
Graylog2 Server
Free and open source log management
Stars: ✭ 5,952 (+15563.16%)
Mutual labels:  gelf, graylog
Logstash Gelf
Graylog Extended Log Format (GELF) implementation in Java for all major logging frameworks: log4j, log4j2, java.util.logging, logback, JBossAS7 and WildFly 8-12
Stars: ✭ 360 (+847.37%)
Mutual labels:  logback, graylog
Logback More Appenders
Extra appenders for Logback.
Stars: ✭ 93 (+144.74%)
Mutual labels:  logback
Spring Boot Logging
A library for logging HTTP request/response for Spring Boot application and integration with Elastic Stack
Stars: ✭ 92 (+142.11%)
Mutual labels:  logback
Scala Ddd Example
🎯 λ Hexagonal Architecture + DDD + CQRS applied in Scala using Akka HTTP
Stars: ✭ 86 (+126.32%)
Mutual labels:  logback
Springboot Templates
springboot和dubbo、netty的集成,redis mongodb的nosql模板, kafka rocketmq rabbit的MQ模板, solr solrcloud elasticsearch查询引擎
Stars: ✭ 100 (+163.16%)
Mutual labels:  logback
Spring Boot Fx
🎈Spring Boot, JavaFX, bootstrap3, mongoDB
Stars: ✭ 57 (+50%)
Mutual labels:  logback
Java Library Examples
💪 example of common used libraries and frameworks, programming required, don't fork man.
Stars: ✭ 204 (+436.84%)
Mutual labels:  logback
Graylog-Plugin-AlertManager-Callback
A plugin for Graylog which provides the possibility to send alerts to the Prometheus AlertManager API.
Stars: ✭ 23 (-39.47%)
Mutual labels:  graylog
Stubbornjava
Unconventional Java code for building web servers / services without a framework. Think dropwizard but as a seed project instead of a framework. If this project had a theme it would be break the rules but be mindful of your decisions.
Stars: ✭ 184 (+384.21%)
Mutual labels:  logback
Terse Logback
Structured Logging, Tracing, and Observability with Logback
Stars: ✭ 146 (+284.21%)
Mutual labels:  logback
Spring Boot Sample App
Sample app generated from my spring boot archtype on :https://github.com/Romeh/spring-boot-quickstart-archtype
Stars: ✭ 81 (+113.16%)
Mutual labels:  logback
Sofa Common Tools
sofa-common-tools is a library that provide some utility functions to other SOFA libraries.
Stars: ✭ 141 (+271.05%)
Mutual labels:  logback
Tomcat Slf4j Logback
Tomcat, SLF4J and Logback integration Releases
Stars: ✭ 172 (+352.63%)
Mutual labels:  logback

GELF Appender for Logback

Build Status Maven Central

This logback appender logs messages to a Graylog server. It's using the official GELF Java client to connect to the remote server. It's inspired and influenced greatly by the Log4j2 GELF Appender.

The appender has several configurable properties:

  • server (default: localhost)
    • The host name or IP address of the GELF server
  • port (default: 12201)
    • The port the GELF server is listening on
  • hostName (default: the local host name or localhost if it couldn't be detected)
    • The host name of the machine generating the logs
  • protocol (default: UDP)
    • The transport protocol to use
  • includeSource (default: true)
    • Whether the source of the log message should be included
  • includeMDC (default: true)
  • includeStackTrace (default: true)
    • Whether a full stack trace should be included
  • includeLevelName (default: false)
    • Whether the log level's name should be included, e.g. 'WARN', 'INFO' ...
  • queueSize (default: 512)
    • The size of the internally used queue
  • connectTimeout (default: 1000)
    • The connection timeout for TCP connections in milliseconds
  • reconnectDelay (default: 500)
    • The time to wait between reconnects in milliseconds
  • sendBufferSize (default: -1)
    • The size of the socket send buffer in bytes. A size of -1 deactivates the send buffer
  • tcpNoDelay (default: false)
    • Whether Nagle's algorithm should be used for TCP connections
  • tcpKeepAlive (default: false)
    • Whether to try keeping alive TCP connections.
  • layout (default: "%m %n")
    • The Layout to use to format the LogEvent; the resulting string will be used as GELF's short_message (exception stacktraces are not included in this message)
  • additionalFields
    • Comma-delimited list of key=value pairs to be included in every message

Logback.xml example

<configuration debug="true">    
    <appender name="gelf" class="de.appelgriepsch.logback.GelfAppender">
        <server>localhost</server>
        <port>12201</port>
        <hostName>localhost</hostName>
        <protocol>UDP</protocol>
        <includeSource>true</includeSource>
        <includeMDC>true</includeMDC>
        <queueSize>512</queueSize>
        <connectTimeout>1000</connectTimeout>
        <reconnectDelay>500</reconnectDelay>
        <additionalFields>cow=moo,cat=meow</additionalFields>
        <layout class="ch.qos.logback.classic.PatternLayout">
            <pattern>%.-25m</pattern>
        </layout>
    </appender>
    <root level="DEBUG">
        <appender-ref ref="gelf" />
    </root>
</configuration>

License

GELF Appender for Logback

Copyright (C) 2019 Sandra Thieme [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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].