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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...