Skip to content

Commit

Permalink
Remame plugin name for HttpEventCollectorLog4jAppender to SplunkHttp (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dan1 committed Dec 12, 2018
1 parent 930f10d commit c4fd14c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
/**
* Splunk Http Appender.
*/
@Plugin(name = "Http", category = "Core", elementType = "appender", printObject = true)
@Plugin(name = "SplunkHttp", category = "Core", elementType = "appender", printObject = true)
@SuppressWarnings("serial")
public final class HttpEventCollectorLog4jAppender extends AbstractAppender
{
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ under the License.
<PatternLayout pattern="%p: %m%n" charset="UTF-8"/>
</Socket>

<Http name="http-input"
<SplunkHttp name="http-input"
url="http://localhost:5555/services/collector/event/1.0"
token="11111111-2222-3333-4444-555555555555"
host=""
Expand All @@ -46,7 +46,7 @@ under the License.
batch_interval="0"
disableCertificateValidation="true">
<PatternLayout pattern="%m"/>
</Http>
</SplunkHttp>
</Appenders>
<!-- Define a logger named 'splunk.logger' which writes to the socket appender we defined above. -->
<Loggers>
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/log4j2_template.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="info" name="example" packages="com.splunk.logging">
<Appenders>
<Http
<SplunkHttp
name="httpconf"
url="%scheme%://%host%:8088"
token="%user_httpEventCollector_token%"
Expand All @@ -20,7 +20,7 @@
>

<PatternLayout pattern="%m"/>
</Http>
</SplunkHttp>

</Appenders>

Expand Down

0 comments on commit c4fd14c

Please sign in to comment.