Skip to content

Commit e5a783f

Browse files
author
Damien Dallimore
committed
HEC work
1 parent 62019f0 commit e5a783f

File tree

94 files changed

+1818
-344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1818
-344
lines changed

config/jdklogging.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ com.splunk.logging.jdk.handler.SplunkHECHandler.source=jul
4343
com.splunk.logging.jdk.handler.SplunkHECHandler.sourcetype=test-data
4444
com.splunk.logging.jdk.handler.SplunkHECHandler.maxQueueSize=5MB
4545
com.splunk.logging.jdk.handler.SplunkHECHandler.dropEventsOnQueueFull=false
46+
com.splunk.logging.jdk.handler.SplunkHECHandler.batchMode=true
47+
com.splunk.logging.jdk.handler.SplunkHECHandler.maxBatchSizeBytes=1MB
48+
com.splunk.logging.jdk.handler.SplunkHECHandler.maxBatchSizeEvents=5
49+
com.splunk.logging.jdk.handler.SplunkHECHandler.maxInactiveTimeBeforeBatchFlush=5000
4650

4751

4852
# Set the default logging level for new ConsoleHandler instances

config/log4j.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ log4j.appender.splunkhec.source=log4j-test
5050
log4j.appender.splunkhec.sourcetype=test-data
5151
log4j.appender.splunkhec.maxQueueSize=5MB
5252
log4j.appender.splunkhec.dropEventsOnQueueFull=false
53+
log4j.appender.splunkhec.batchMode=true
54+
log4j.appender.splunkhec.maxBatchSizeBytes=1MB
55+
log4j.appender.splunkhec.maxBatchSizeEvents=5
56+
log4j.appender.splunkhec.maxInactiveTimeBeforeBatchFlush=5000
5357
log4j.appender.splunkhec.layout=org.apache.log4j.PatternLayout
5458
log4j.appender.splunkhec.layout.ConversionPattern=%m
5559

config/log4j2.xml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@
1212
host="localhost"
1313
port="8088"
1414
https="false"
15-
poolsize="1"
15+
poolsize="5"
1616
index="main"
1717
source="log4j2"
18-
sourcetype="test-data" >
18+
sourcetype="test-data"
19+
maxQueueSize="5MB"
20+
dropEventsOnQueueFull="false"
21+
batchMode="true"
22+
maxBatchSizeBytes="1MB"
23+
maxBatchSizeEvents="5"
24+
maxInactiveTimeBeforeBatchFlush="500">
1925

2026
<PatternLayout pattern="%m" />
2127

@@ -31,12 +37,14 @@
3137
<PatternLayout pattern="%m%n" />
3238
</Socket>
3339

40+
<!--
3441
<Failover name="failover_example" primary="splunkhec">
3542
<Failovers>
3643
<AppenderRef ref="splunkrawtcp" />
3744
</Failovers>
3845
</Failover>
39-
46+
-->
47+
4048
<Console name="stdout" target="SYSTEM_OUT">
4149
<PatternLayout pattern="%m%n" />
4250
</Console>
@@ -51,9 +59,9 @@
5159
</Root>
5260
<logger name="splunk.logger" additivity="false" level="INFO">
5361
<appender-ref ref="splunkhec" />
54-
<!-- <appender-ref ref="splunkrawtcp" /> -->
62+
<!-- <appender-ref ref="splunkrawtcp" />-->
5563
<!-- <appender-ref ref="splunkrawudp" /> -->
56-
<!-- <appender-ref ref="failover_example" /> -->
64+
<!-- <appender-ref ref="failover_example" />-->
5765
</logger>
5866
</Loggers>
5967

config/logback.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
<sourcetype>test-data</sourcetype>
5353
<maxQueueSize>5MB</maxQueueSize>
5454
<dropEventsOnQueueFull>false</dropEventsOnQueueFull>
55+
<batchMode>true</batchMode>
56+
<maxBatchSizeBytes>1MB</maxBatchSizeBytes>
57+
<maxBatchSizeEvents>5</maxBatchSizeEvents>
58+
<maxInactiveTimeBeforeBatchFlush>5000</maxInactiveTimeBeforeBatchFlush>
5559
<layout class="ch.qos.logback.classic.PatternLayout">
5660
<pattern>%m</pattern>
5761
<!-- optionally you can enrich the messages with formatting tokens from the logging framework

javadocs/allclasses-frame.html

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_65) on Tue Aug 25 18:25:18 ICT 2015 -->
5+
<!-- Generated by javadoc (build 1.6.0_65) on Tue Sep 01 17:04:45 ICT 2015 -->
66
<TITLE>
77
All Classes
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2015-08-25">
10+
<META NAME="date" CONTENT="2015-09-01">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

@@ -21,10 +21,22 @@
2121

2222
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
2323
<TR>
24-
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="com/splunk/logging/HECTransportConfig.html" title="class in com.splunk.logging" target="classFrame">HECTransportConfig</A>
24+
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="com/splunk/logging/examples/Example.html" title="class in com.splunk.logging.examples" target="classFrame">Example</A>
25+
<BR>
26+
<A HREF="com/splunk/logging/HECTransportConfig.html" title="class in com.splunk.logging" target="classFrame">HECTransportConfig</A>
2527
<BR>
2628
<A HREF="com/splunk/logging/RestEventData.html" title="class in com.splunk.logging" target="classFrame">RestEventData</A>
2729
<BR>
30+
<A HREF="com/splunk/logging/jdk/handler/SplunkFormatter.html" title="class in com.splunk.logging.jdk.handler" target="classFrame">SplunkFormatter</A>
31+
<BR>
32+
<A HREF="com/splunk/logging/log4j/appender/SplunkHECAppender.html" title="class in com.splunk.logging.log4j.appender" target="classFrame">SplunkHECAppender</A>
33+
<BR>
34+
<A HREF="com/splunk/logging/log4j2/appender/SplunkHECAppender.html" title="class in com.splunk.logging.log4j2.appender" target="classFrame">SplunkHECAppender</A>
35+
<BR>
36+
<A HREF="com/splunk/logging/logback/appender/SplunkHECAppender.html" title="class in com.splunk.logging.logback.appender" target="classFrame">SplunkHECAppender</A>
37+
<BR>
38+
<A HREF="com/splunk/logging/jdk/handler/SplunkHECHandler.html" title="class in com.splunk.logging.jdk.handler" target="classFrame">SplunkHECHandler</A>
39+
<BR>
2840
<A HREF="com/splunk/logging/SplunkHECInput.html" title="class in com.splunk.logging" target="classFrame">SplunkHECInput</A>
2941
<BR>
3042
<A HREF="com/splunk/logging/SplunkInput.html" title="class in com.splunk.logging" target="classFrame">SplunkInput</A>
@@ -33,8 +45,20 @@
3345
<BR>
3446
<A HREF="com/splunk/logging/SplunkLogEventFactory.html" title="class in com.splunk.logging" target="classFrame">SplunkLogEventFactory</A>
3547
<BR>
48+
<A HREF="com/splunk/logging/log4j/appender/SplunkRawTCPAppender.html" title="class in com.splunk.logging.log4j.appender" target="classFrame">SplunkRawTCPAppender</A>
49+
<BR>
50+
<A HREF="com/splunk/logging/logback/appender/SplunkRawTCPAppender.html" title="class in com.splunk.logging.logback.appender" target="classFrame">SplunkRawTCPAppender</A>
51+
<BR>
52+
<A HREF="com/splunk/logging/jdk/handler/SplunkRawTCPHandler.html" title="class in com.splunk.logging.jdk.handler" target="classFrame">SplunkRawTCPHandler</A>
53+
<BR>
3654
<A HREF="com/splunk/logging/SplunkRawTCPInput.html" title="class in com.splunk.logging" target="classFrame">SplunkRawTCPInput</A>
3755
<BR>
56+
<A HREF="com/splunk/logging/log4j/appender/SplunkRestAppender.html" title="class in com.splunk.logging.log4j.appender" target="classFrame">SplunkRestAppender</A>
57+
<BR>
58+
<A HREF="com/splunk/logging/logback/appender/SplunkRestAppender.html" title="class in com.splunk.logging.logback.appender" target="classFrame">SplunkRestAppender</A>
59+
<BR>
60+
<A HREF="com/splunk/logging/jdk/handler/SplunkRestHandler.html" title="class in com.splunk.logging.jdk.handler" target="classFrame">SplunkRestHandler</A>
61+
<BR>
3862
<A HREF="com/splunk/logging/SplunkRestInput.html" title="class in com.splunk.logging" target="classFrame">SplunkRestInput</A>
3963
<BR>
4064
</FONT></TD>

javadocs/allclasses-noframe.html

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_65) on Tue Aug 25 18:25:18 ICT 2015 -->
5+
<!-- Generated by javadoc (build 1.6.0_65) on Tue Sep 01 17:04:45 ICT 2015 -->
66
<TITLE>
77
All Classes
88
</TITLE>
99

10-
<META NAME="date" CONTENT="2015-08-25">
10+
<META NAME="date" CONTENT="2015-09-01">
1111

1212
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
1313

@@ -21,10 +21,22 @@
2121

2222
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
2323
<TR>
24-
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="com/splunk/logging/HECTransportConfig.html" title="class in com.splunk.logging">HECTransportConfig</A>
24+
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="com/splunk/logging/examples/Example.html" title="class in com.splunk.logging.examples">Example</A>
25+
<BR>
26+
<A HREF="com/splunk/logging/HECTransportConfig.html" title="class in com.splunk.logging">HECTransportConfig</A>
2527
<BR>
2628
<A HREF="com/splunk/logging/RestEventData.html" title="class in com.splunk.logging">RestEventData</A>
2729
<BR>
30+
<A HREF="com/splunk/logging/jdk/handler/SplunkFormatter.html" title="class in com.splunk.logging.jdk.handler">SplunkFormatter</A>
31+
<BR>
32+
<A HREF="com/splunk/logging/log4j/appender/SplunkHECAppender.html" title="class in com.splunk.logging.log4j.appender">SplunkHECAppender</A>
33+
<BR>
34+
<A HREF="com/splunk/logging/log4j2/appender/SplunkHECAppender.html" title="class in com.splunk.logging.log4j2.appender">SplunkHECAppender</A>
35+
<BR>
36+
<A HREF="com/splunk/logging/logback/appender/SplunkHECAppender.html" title="class in com.splunk.logging.logback.appender">SplunkHECAppender</A>
37+
<BR>
38+
<A HREF="com/splunk/logging/jdk/handler/SplunkHECHandler.html" title="class in com.splunk.logging.jdk.handler">SplunkHECHandler</A>
39+
<BR>
2840
<A HREF="com/splunk/logging/SplunkHECInput.html" title="class in com.splunk.logging">SplunkHECInput</A>
2941
<BR>
3042
<A HREF="com/splunk/logging/SplunkInput.html" title="class in com.splunk.logging">SplunkInput</A>
@@ -33,8 +45,20 @@
3345
<BR>
3446
<A HREF="com/splunk/logging/SplunkLogEventFactory.html" title="class in com.splunk.logging">SplunkLogEventFactory</A>
3547
<BR>
48+
<A HREF="com/splunk/logging/log4j/appender/SplunkRawTCPAppender.html" title="class in com.splunk.logging.log4j.appender">SplunkRawTCPAppender</A>
49+
<BR>
50+
<A HREF="com/splunk/logging/logback/appender/SplunkRawTCPAppender.html" title="class in com.splunk.logging.logback.appender">SplunkRawTCPAppender</A>
51+
<BR>
52+
<A HREF="com/splunk/logging/jdk/handler/SplunkRawTCPHandler.html" title="class in com.splunk.logging.jdk.handler">SplunkRawTCPHandler</A>
53+
<BR>
3654
<A HREF="com/splunk/logging/SplunkRawTCPInput.html" title="class in com.splunk.logging">SplunkRawTCPInput</A>
3755
<BR>
56+
<A HREF="com/splunk/logging/log4j/appender/SplunkRestAppender.html" title="class in com.splunk.logging.log4j.appender">SplunkRestAppender</A>
57+
<BR>
58+
<A HREF="com/splunk/logging/logback/appender/SplunkRestAppender.html" title="class in com.splunk.logging.logback.appender">SplunkRestAppender</A>
59+
<BR>
60+
<A HREF="com/splunk/logging/jdk/handler/SplunkRestHandler.html" title="class in com.splunk.logging.jdk.handler">SplunkRestHandler</A>
61+
<BR>
3862
<A HREF="com/splunk/logging/SplunkRestInput.html" title="class in com.splunk.logging">SplunkRestInput</A>
3963
<BR>
4064
</FONT></TD>

0 commit comments

Comments
 (0)