Splunk Search

Help with maven and splunk and log4j

j1nagar
New Member

Hello,
I know i am doing something wrong but been going nowhere on this.
Basically, have a maven project in eclipse and have the below in pom .
But not able to import com.splunk.logging.SplunkLogEvent in my class and neither
i see this class in the jar. But when i see examples , its importing using above.
Any help would be greatly appreciated.
thanks.

com.splunk
splunk
1.2.0


ext-release-local
...repo.springsource.org/libs-release-remote/com/splunk/splunk/1.2.0


spring-milestones
...repo.springsource.org/libs-milestone/

Also tried this one too.

ext-release-local
...splunk.artifactoryonline.com/splunk/ext-releases-local

Tags (1)
0 Karma

j1nagar
New Member

Thanks so much sir,
Finally, was able to download correctly(was getting corrupted).
Yes,now i see splunklogging.jar.
Thanks a bunch again.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The artifact available at the artifactoryonline.com repository is the Splunk Java SDK (up to version 1.2.2.0), but not the logging framework containing c.s.logging.SplunkLogEvent

You can get that from here: https://github.com/damiendallimore/SplunkJavaLogging/blob/master/releases/splunklogging-1.0.tar.gz - see the lib directory in the unpacked tar for a splunk-logging.jar

0 Karma

j1nagar
New Member

Thanks martin,
I tried downloading the jar to install the file locally in my maven but seems corrupted.?
Not able to extract tar(under releases) as per the QuickStart doc.
I tried both under win7 and unix m/c to untar it.
Also, the release says 1.0 but maven had it as 2.0?

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

That class is part of Damien's SplunkJavaLogging package, you can get it here: https://github.com/damiendallimore/SplunkJavaLogging

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...