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!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...