Splunk Search

splunk agent java

indeed_2000
Motivator

Hi
Hope you are well,

I want to use splunk-agent-java and read description of this page
https://github.com/splunk/splunk-agent-java

1-this link not work
http://splunk-base.splunk.com/apps/25505/splunk-for-jmx

2-I download this file splunkagent.tar.gz
and extact to this path /opt/splunkagent.jar on one of my server that splunk forwarder already installed on it.

3-here is my splunkagent.properties

agent.app.name=sokantest
agent.app.instance=MyJVM
agent.userEventTags=key1=value1,key2=value2

splunk.transport.impl=com.splunk.javaagent.transport.SplunkTCPTransport
splunk.transport.tcp.host=192.168.1.1
splunk.transport.tcp.port=9997
splunk.transport.tcp.maxQueueSize=5MB
splunk.transport.tcp.dropEventsOnQueueFull=false

trace.blacklist=com/sun,sun/,java/,javax/,com/splunk/javaagent/
trace.methodEntered=true
trace.methodExited=true
trace.classLoaded=true
trace.errors=true

trace.hprof=false
trace.hprof.tempfile=mydump.hprof
trace.hprof.frequency=600

trace.jmx=false
trace.jmx.configfiles=jmx
trace.jmx.default.frequency=60

4-should I do something on my server side? I can't find any index or sourcetype!

5-also read this
https://www.slideshare.net/damiendallimore/splunk-java-agent

Any idea?  @Damien_Dallimor  
Thanks

 

Tags (3)
0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

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