Skip to content

Commit a813765

Browse files
author
Damien Dallimore
committed
updated maven pom
1 parent cffe794 commit a813765

File tree

5 files changed

+61
-20
lines changed

5 files changed

+61
-20
lines changed

config/log4j2.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
<PatternLayout pattern="%m%n" />
3737
</Console>
3838

39-
<Failover name="failover_example" primary="splunkrawtcp">
39+
<Failover name="failover_example" primary="splunkhec">
4040
<Failovers>
41-
<AppenderRef ref="stdout" />
41+
<AppenderRef ref="splunkrawtcp" />
4242
</Failovers>
4343
</Failover>
4444

pom.xml

Lines changed: 51 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,30 @@
3737
<artifactId>commons-lang</artifactId>
3838
<version>2.4</version>
3939
</dependency>
40+
<dependency>
41+
<groupId>commons-codec</groupId>
42+
<artifactId>commons-codec</artifactId>
43+
<version>1.9</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>commons-logging</groupId>
47+
<artifactId>commons-logging</artifactId>
48+
<version>1.2</version>
49+
</dependency>
4050
<dependency>
4151
<groupId>log4j</groupId>
4252
<artifactId>log4j</artifactId>
43-
<version>1.2.17</version>
53+
<version>1.2.16</version>
54+
</dependency>
55+
<dependency>
56+
<groupId>org.apache.logging.log4j</groupId>
57+
<artifactId>log4j-api</artifactId>
58+
<version>2.3</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.apache.logging.log4j</groupId>
62+
<artifactId>log4j-core</artifactId>
63+
<version>2.3</version>
4464
</dependency>
4565
<dependency>
4666
<groupId>org.slf4j</groupId>
@@ -78,15 +98,36 @@
7898
<version>1.1.3</version>
7999
</dependency>
80100
<dependency>
81-
<groupId>org.apache.logging.log4j</groupId>
82-
<artifactId>log4j-api</artifactId>
83-
<version>2.3</version>
84-
</dependency>
85-
<dependency>
86-
<groupId>org.apache.logging.log4j</groupId>
87-
<artifactId>log4j-core</artifactId>
88-
<version>2.3</version>
89-
</dependency>
101+
<groupId>org.apache.httpcomponents</groupId>
102+
<artifactId>httpclient</artifactId>
103+
<version>4.4.1</version>
104+
</dependency>
105+
<dependency>
106+
<groupId>org.apache.httpcomponents</groupId>
107+
<artifactId>httpclient-cache</artifactId>
108+
<version>4.4.1</version>
109+
</dependency>
110+
<dependency>
111+
<groupId>org.apache.httpcomponents</groupId>
112+
<artifactId>httpasyncclient</artifactId>
113+
<version>4.1</version>
114+
</dependency>
115+
<dependency>
116+
<groupId>org.apache.httpcomponents</groupId>
117+
<artifactId>httpasyncclient-cache</artifactId>
118+
<version>4.1</version>
119+
</dependency>
120+
<dependency>
121+
<groupId>org.apache.httpcomponents</groupId>
122+
<artifactId>httpcore</artifactId>
123+
<version>4.4.1</version>
124+
</dependency>
125+
<dependency>
126+
<groupId>org.apache.httpcomponents</groupId>
127+
<artifactId>httpcore-nio</artifactId>
128+
<version>4.4.1</version>
129+
</dependency>
130+
90131
</dependencies>
91132
<repositories>
92133
<repository>

releases/splunklogging-1.3.tar.gz

19.4 KB
Binary file not shown.
56 Bytes
Binary file not shown.

src/com/splunk/logging/log4j2/appender/SplunkHECAppender.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ public static SplunkHECAppender createAppender(
7676
@PluginAttribute("name") String name,
7777
@PluginElement("Layout") Layout<? extends Serializable> layout,
7878
@PluginElement("Filter") final Filter filter,
79-
@PluginAttribute("otherAttribute") String token,
80-
@PluginAttribute("otherAttribute") String host,
81-
@PluginAttribute("otherAttribute") int port,
82-
@PluginAttribute("otherAttribute") int poolsize,
83-
@PluginAttribute("otherAttribute") boolean https,
84-
@PluginAttribute("otherAttribute") String index,
85-
@PluginAttribute("otherAttribute") String source,
86-
@PluginAttribute("otherAttribute") String sourcetype) {
79+
@PluginAttribute("token") String token,
80+
@PluginAttribute("host") String host,
81+
@PluginAttribute("port") int port,
82+
@PluginAttribute("poolsize") int poolsize,
83+
@PluginAttribute("https") boolean https,
84+
@PluginAttribute("index") String index,
85+
@PluginAttribute("source") String source,
86+
@PluginAttribute("sourcetype") String sourcetype) {
8787

8888
if (name == null) {
8989
LOGGER.error("No name provided for SplunkHECAppender");

0 commit comments

Comments
 (0)