-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathsplunkagent.properties
More file actions
95 lines (82 loc) · 3.25 KB
/
splunkagent.properties
File metadata and controls
95 lines (82 loc) · 3.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#See the README for definition of the propertys
#---------------------
# Common Agent options
#---------------------
agent.app.name=MyTestApp
agent.app.instance=MyJVM
agent.userEventTags=key1=value1,key2=value2
#-------------------------
# Splunk Transport options
#-------------------------
#splunk.transport.internalQueueSize=10000
splunk.transport.impl=com.splunk.javaagent.transport.SplunkTCPTransport
#splunk.transport.impl=com.splunk.javaagent.transport.SplunkStdOutTransport
splunk.transport.tcp.host=your-splunk-server
splunk.transport.tcp.port=5150
splunk.transport.tcp.maxQueueSize=5MB
splunk.transport.tcp.dropEventsOnQueueFull=false
#-----------------------------------
# Class/Method/Error Tracing options
#-----------------------------------
#trace.whitelist=com/some/package/you/want/to/monitor
trace.blacklist=com/sun,sun/,java/,javax/,com/splunk/javaagent/
trace.methodEntered=true
trace.methodExited=true
trace.classLoaded=true
trace.errors=true
#------------------------------
# HPROF Dump Collection options
#------------------------------
#periodically dump hprof file(using JMX operation call), read in file & parse, send events to Splunk, delete file
trace.hprof=false
trace.hprof.tempfile=mydump.hprof
#trace.hprof.tempfile=/etc/tmp/dump.hprof
#in seconds
trace.hprof.frequency=600
#trace.hprof.recordtypes=2,3,4
#by default , all hprof records will be traced, but you can provide a comma delimited list of
#specific record types to trace, the numbers are decimal values from the hprof spec.
#HPROF RECORD TYPE CODE
#==================================
#HPROF_UTF8 1
#HPROF_LOAD_CLASS 2
#HPROF_UNLOAD_CLASS 3
#HPROF_FRAME 4
#HPROF_TRACE 5
#HPROF_ALLOC_SITES 6
#HPROF_HEAP_SUMMARY 7
#HPROF_START_THREAD 10
#HPROF_END_THREAD 11
#HPROF_HEAP_DUMP 12
#HPROF_HEAP_DUMP_SEGMENT 28
#HPROF_HEAP_DUMP_END 44
#HPROF_CPU_SAMPLES 13
#HPROF_CONTROL_SETTINGS 14
#Heap dumps(codes 12 & 28) can have subrecords , so you can use ":" notation to reference these values
#trace.hprof.recordtypes=12:1,12:32,12:33,12:34
#HEAPDUMP SUB RECORD TYPE CODE
#=========================================
#SUBRECORD_GC_ROOT_UNKNOWN -1
#SUBRECORD_GC_ROOT_JNI_GLOBAL 1
#SUBRECORD_GC_ROOT_JNI_LOCAL 2
#SUBRECORD_GC_ROOT_JAVA_FRAME 3
#SUBRECORD_GC_ROOT_NATIVE_STACK 4
#SUBRECORD_GC_ROOT_STICKY_CLASS 5
#SUBRECORD_GC_ROOT_THREAD_BLOCK 6
#SUBRECORD_GC_ROOT_MONITOR_USED 7
#SUBRECORD_GC_ROOT_THREAD_OBJ 8
#SUBRECORD_GC_CLASS_DUMP 32
#SUBRECORD_GC_INSTANCE_DUMP 33
#SUBRECORD_GC_OBJ_ARRAY_DUMP 34
#SUBRECORD_GC_PRIM_ARRAY_DUMP 35
#--------------------------------------------------------
# JMX attribute/operation/notification collection options
#--------------------------------------------------------
#Embedded JMX polling , all other JMX config is in the JMX XML configuration file.
trace.jmx=false
#name of XML files(minus the ".xml" suffix) that should reside in the root of splunkagent.jar
trace.jmx.configfiles=jmx
#trace.jmx.configfiles=goo,foo
#in seconds
trace.jmx.default.frequency=60
#trace.jmx.goo.frequency=30