{"id":22282075,"url":"https://github.com/splunk/splunk-library-javalogging","last_synced_at":"2025-04-05T11:13:03.121Z","repository":{"id":2404493,"uuid":"3371841","full_name":"splunk/splunk-library-javalogging","owner":"splunk","description":"Splunk logging appenders for popular Java Logging frameworks","archived":false,"fork":false,"pushed_at":"2024-07-17T10:51:54.000Z","size":27422,"stargazers_count":137,"open_issues_count":39,"forks_count":176,"subscribers_count":44,"default_branch":"main","last_synced_at":"2025-03-29T10:09:54.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dev.splunk.com/view/splunk-logging-java/SP-CAAAE2K","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splunk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-02-06T22:34:13.000Z","updated_at":"2025-02-27T15:32:04.000Z","dependencies_parsed_at":"2024-12-03T16:38:10.492Z","dependency_job_id":null,"html_url":"https://github.com/splunk/splunk-library-javalogging","commit_stats":{"total_commits":470,"total_committers":76,"mean_commits":6.184210526315789,"dds":0.8574468085106383,"last_synced_commit":"cf59a50d63ef495398f30a8f59b96b5bb62962d5"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-library-javalogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-library-javalogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-library-javalogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-library-javalogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splunk","download_url":"https://codeload.github.com/splunk/splunk-library-javalogging/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325696,"owners_count":20920714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T16:25:19.065Z","updated_at":"2025-04-05T11:13:03.104Z","avatar_url":"https://github.com/splunk.png","language":"Java","readme":"# Splunk Logging for Java\n\n#### Version 1.11.8\n\nSplunk logging for Java enables you to log events to HTTP Event Collector or to a TCP input on a Splunk Enterprise instance within your Java applications. You can use three major Java logging frameworks: [Logback](http://logback.qos.ch), [Log4j 2](http://logging.apache.org/log4j/2.x/), and [java.util.logging](https://docs.oracle.com/javase/7/docs/api/java/util/logging/package-summary.html). Splunk logging for Java is also enabled for [Simple Logging Facade for Java (SLF4J)](http://www.slf4j.org).\n\nSplunk logging for Java provides:\n\n* Appender classes that package events into the proper format for the input type you're using (HTTP Event Collector or TCP).\n\n* Handler classes that export the logging events.\n\n* An optional error handler to catch failures for HTTP Event Collector events.\n\n* Example configuration files for all three frameworks that show how to configure the frameworks to write to HTTP Event Collector or TCP ports.\n\n* Support for batching events (sent to HTTP Event Collector only).\u003c/li\u003e\n\n### Requirements\n\nHere's what you need to get going with Splunk logging for Java.\n\n#### Splunk\n\nIf you haven't already installed Splunk, download it\n[here](http://www.splunk.com/download). For more about installing and running\nSplunk and system requirements, see [Installing \u0026 Running Splunk](http://dev.splunk.com/view/SP-CAAADRV). Splunk logging for Java is tested with Splunk Enterprise 8.0 and 8.2.0.\n\n#### Java\n\nYou'll need Java version 8 or higher, from [OpenJDK](https://openjdk.java.net) or [Oracle](https://www.oracle.com/technetwork/java).\n\n#### Logging frameworks\n\nIf you're using the Log4j 2, Simple Logging Facade for Java (SLF4J), or Logback logging frameworks in conjunction with Splunk logging for Java there are additional compatibility requirements. For more about logging framework requirements, see [Enable logging to HEC](https://dev.splunk.com/enterprise/docs/devtools/java/logging-java/howtouseloggingjava/enableloghttpjava/) and [Enable logging to TCP inputs](https://dev.splunk.com/enterprise/docs/devtools/java/logging-java/howtouseloggingjava/enablelogtcpjava). These frameworks require:\n* Log4j version 2.17.2\n* SLF4J version 1.7.36\n* Logback version 1.2.11\n\n## Documentation and resources\n\n* For more information about installing and using Splunk logging for Java, see\n  [Overview of Splunk logging for Java](http://dev.splunk.com/goto/sdk-slj).\n\n* For reference documentation, see the\n  [Splunk logging for Java API reference](https://docs.splunk.com/DocumentationStatic/JavaLogging/1.8.0/index.html).\n\n* For all things developer with Splunk, see the\n  [Splunk Developer Portal](http://dev.splunk.com).\n\n* For more about about Splunk in general, see\n  [Splunk\u003eDocs](http://docs.splunk.com/Documentation/Splunk).\n\n## Dependency Management\n\nThe `splunk-library-javalogging` artifact can be accessed via Splunk's managed Maven repoitory.\n\n### Apache Maven\n\nFirst define the repository as follows\n\n```xml\n...\n  \u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003esplunk-artifactory\u003c/id\u003e\n        \u003cname\u003eSplunk Releases\u003c/name\u003e\n        \u003curl\u003ehttps://splunk.jfrog.io/splunk/ext-releases-local\u003c/url\u003e\n    \u003c/repository\u003e\n  \u003c/repositories\u003e\n...\n```\n\n... then reference the dependency as follows\n\n```xml\n...\n  \u003cdependencies\u003e\n    \u003cdependency\u003e\n      \u003cgroupId\u003ecom.splunk.logging\u003c/groupId\u003e\n      \u003cartifactId\u003esplunk-library-javalogging\u003c/artifactId\u003e\n      \u003cversion\u003e${latest.version}\u003c/version\u003e\n    \u003c/dependency\u003e\n    ...\n  \u003c/dependencies\u003e\n...\n```\n\nThe above can be adapted to suit Other dependency management implementations as necessary.\n\n## License\n\nSplunk logging for Java is licensed under the Apache License 2.0.\n\nSee the [LICENSE file](/license.md) for details.\n\n## Contributions\n\n[Get the Splunk Java Logging Framework from GitHub](https://github.com/splunk/splunk-library-javalogging)\nand clone the resources to your computer. For example, use the following\ncommand:\n\n    git clone https://github.com/splunk/splunk-library-javalogging.git\n\n## Support\n\nThe Splunk logging for Java is community-supported.\n\n1. You can find help through our community on [Splunk Answers](https://community.splunk.com/t5/tag/logging-library-java/tg-p) (use the \"logging-library-java\" tag to identify your questions).\n2. File issues on [GitHub](https://github.com/splunk/splunk-library-javalogging/issues).\n","funding_links":[],"categories":["日志库"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fsplunk-library-javalogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplunk%2Fsplunk-library-javalogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fsplunk-library-javalogging/lists"}