Created
April 3, 2014 16:50
-
-
Save brusic/9958288 to your computer and use it in GitHub Desktop.
Log4j socket appender -> Logstash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appender: | |
socketA: | |
type: org.apache.log4j.net.SocketAppender | |
port: 9500 | |
remoteHost: logstash-server | |
socketB: | |
type: org.apache.log4j.net.SocketAppender | |
port: 9501 | |
remoteHost: logstash-server | |
input { | |
log4j { | |
debug => true | |
mode => "server" | |
port => 9500 | |
type => typeA | |
} | |
log4j { | |
debug => true | |
mode => "server" | |
port => 9501 | |
type => typeB | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appender: | |
socketA: | |
type: org.apache.log4j.net.SocketAppender | |
port: 9500 | |
remoteHost: logstash-server | |
socketB: | |
type: org.apache.log4j.net.SocketAppender | |
port: 9500 | |
remoteHost: logstash-server | |
application: new_application_type | |
input { | |
log4j { | |
debug => true | |
mode => "server" | |
port => 9500 | |
type => typeA | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment