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!

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...