Skip to content

lkb2k/loggly-syslog-logback

This branch is up to date with sgargan/loggly-syslog-logback:master.

Repository files navigation

loggly-syslog-logback

A modification of the standard Logback syslog appender that forwards events to loggly http://loggly.com

Building

Building requires a recent version of maven. http://maven.apache.org

mvn clean install

To build a jar that contains all the required dependencies in one jar use the with-dependencies profile.

mvn clean install -Pwith-dependencies

Configuring

The following xml snippet will configure the appender, just add it to your logback.xml. You will need to add your loggly api key. You can provide arbitrary tags here that will be added to each event and aid filtering in the loggly ui. The port and syslog host should be good as provided

<appender name="LOGGLY" class="com.github.sgargan.logging.LogglySyslogAppender">
    <syslogHost>logs-01.loggly.com</syslogHost>
    <tags>appId,dev</tags>
    <apiToken>your-loggly-api-key</apiToken>
    <appName>appId</appName>
    <port>514</port>
    <facility>LOCAL6</facility>
</appender>

Licence

Uses the same dual licencing as Logback. See LICENCE.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 95.0%
  • XML 5.0%