https://github.com/rsatrio/graylog-gelf-logback-appender
Graylog's GELF Appender for Logback
https://github.com/rsatrio/graylog-gelf-logback-appender
Last synced: about 2 months ago
JSON representation
Graylog's GELF Appender for Logback
- Host: GitHub
- URL: https://github.com/rsatrio/graylog-gelf-logback-appender
- Owner: rsatrio
- Created: 2020-12-02T02:22:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-02T02:26:09.000Z (over 4 years ago)
- Last Synced: 2025-02-15T10:32:33.511Z (4 months ago)
- Language: Java
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Logback Custom Appender for Graylog's GELF
A simple example of Logback's Appender for Graylog Extended Log Format (GELF). The interface used in Graylog for input is Http. This project is tested with Java 8.
## Features
- Logback's Appender to send log the Graylog's GELF Http Interface
- Unit Test## Build
- Use mvn package to build the module into jar file
> mvn clean package- Put the resulting jar in your classpath
- Add these dependencies in your pom.xml:ch.qos.logback
logback-classic
1.2.3
com.konghq
unirest-java
3.3.00
## Configuration
- Please check the logback.xml example in the src/main/resources
- There are 4 configuration for the appender:
1. graylog_http_url, this is the URL of the Graylog's GELF Http Interface. This configuration is mandatory and cannot be NULL.
2. hostname, this is the hostname to be submitted to Graylog for every log. Default is localhost
3. gelf_version, the GELF version, default is 1.1
4. verify_ssl, to verify_ssl/not when using Https. Default is true.## Feedback
For feedback, please raise issues in the issue section of the repository. Periodically, I will update the example with more real-life use case example. Enjoy!!.