The purpose of this project is to create a logging framework to allow developers to as seamlessly as possible integrate Splunk best practice logging semantics into their code. There are also custom handler/appender implementations for the 3 most prevelent Java logging frameworks in play.
- LogBack
- log4j
- java.util logging
This framework contains :
-
Implementation of Splunk CIM(Common Information Model) and best practice logging semantics
-
java.util.logging handler for logging to Splunk REST endpoints
-
log4j appender for logging to Splunk REST endpoints
-
Logback appender for logging to Splunk REST endpoints
-
Example logging configuration files
-
Javadocs
The Splunk Java Logging Framework is licensed under the Creative Commons 3.0 License. Details can be found in the file LICENSE.
- Untar releases/splunklogging-0.1.0.tar.gz
- All the required jar files are in the lib directory..
- Assume you know how to setup your classpath to use your preferred logging framework implementation.
- There is simple code example here https://github.com/damiendallimore/SplunkJavaLogging/blob/master/src/com/dtdsoftware/splunk/logging/examples/Example.java
- There are sample logging config files in the config directory for the 3 logging frameworks
If you haven't already installed Splunk, download it here: http://www.splunk.com/download. For more about installing and running Splunk and system requirements, see Installing & Running Splunk (http://dev.splunk.com/view/SP-CAAADRV).
Get the Splunk Java Logging Framework from GitHub (https://github.com/) and clone the resources to your computer. For example, use the following command:
git clone https://github.com/damiendallimore/SplunkJavaLogging.git
Splunk Common Information Model
Splunk Best Practice Logging Semantics
Introduction to the Splunk product and some of its capabilities
This project was initiated by Damien Dallimore
| damien@dtdsoftware.com | |
| @damiendallimore | |
| Splunkbase.com | damiend |