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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...