File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Example java.util.logging configuration using a Splunk REST Handler or Splunk Raw TCP Appender
2
2
3
3
# handlers = java.util.logging.ConsoleHandler
4
- handlers = com.splunk.logging.jdk.handler.SplunkRestHandler
5
- # handlers = com.splunk.logging.jdk.handler.SplunkRawTCPHandler
4
+ # handlers = com.splunk.logging.jdk.handler.SplunkRestHandler
5
+ handlers = com.splunk.logging.jdk.handler.SplunkRawTCPHandler
6
6
7
7
# Set the default logging level for the root logger
8
8
.level = INFO
@@ -25,8 +25,8 @@ com.splunk.logging.jdk.handler.SplunkRestHandler.dropEventsOnQueueFull=false
25
25
26
26
# Set the default logging level for new SplunkRawTCPHandler instances
27
27
com.splunk.logging.jdk.handler.SplunkRawTCPHandler.level =INFO
28
- com.splunk.logging.jdk.handler.SplunkRawTCPHandler.host =localhost
29
- com.splunk.logging.jdk.handler.SplunkRawTCPHandler.port =5150
28
+ com.splunk.logging.jdk.handler.SplunkRawTCPHandler.host =somehost
29
+ com.splunk.logging.jdk.handler.SplunkRawTCPHandler.port =5151
30
30
com.splunk.logging.jdk.handler.SplunkRawTCPHandler.maxQueueSize =5MB
31
31
com.splunk.logging.jdk.handler.SplunkRawTCPHandler.dropEventsOnQueueFull =false
32
32
Original file line number Diff line number Diff line change 11
11
<delivery >stream</delivery >
12
12
<user >admin</user >
13
13
<metaSourcetype >testing</metaSourcetype >
14
- <pass >splunk </pass >
14
+ <pass >sawasdee </pass >
15
15
<maxQueueSize >5MB</maxQueueSize >
16
16
<dropEventsOnQueueFull >false</dropEventsOnQueueFull >
17
17
<metaSource >rest</metaSource >
28
28
<!-- Send log events to a Splunk Raw TCP server socket-->
29
29
<appender name =" splunkrawtcp" class =" com.splunk.logging.logback.appender.SplunkRawTCPAppender" >
30
30
<port >5151</port >
31
- <host >ubuntu-splunk </host >
31
+ <host >somehost </host >
32
32
<maxQueueSize >5MB</maxQueueSize >
33
33
<dropEventsOnQueueFull >false</dropEventsOnQueueFull >
34
34
<layout class =" ch.qos.logback.classic.PatternLayout" >
You can’t perform that action at this time.
0 commit comments