Created
December 6, 2012 19:56
-
-
Save fishnix/4227771 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| {"@source":"tcp://172.28.51.163:4560/client/172.28.51.163:51093","@tags":[],"@fields":{"priority":"INFO","logger_name":"org.jasig.cas.services.DefaultServicesManagerImpl","thread":"scheduler_Worker-9","class":"?","file":"?:?","method":"?"},"@type":"logstash_log4j","@source_host":"172.28.51.163:51093","@source_path":"org.jasig.cas.services.DefaultServicesManagerImpl","@message":"Loaded 0 services.","@timestamp":"2012-12-06T20:00:57.974Z"} |
This file contains hidden or 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
| mutate { type => "logstash_log4j" add_tag => [ "jboss", "cas" ] } |
This file contains hidden or 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
| input { | |
| log4j { | |
| format => "plain" | |
| host => "172.28.51.163" | |
| message_format => "string" | |
| mode => "server" | |
| port => 4560 | |
| tags => ["jboss","cas"] | |
| type => "logstash_log4j" | |
| } | |
| } | |
| filter { | |
| multiline { | |
| type => "logstash_log4j" | |
| pattern => "^\s" | |
| what => "previous" | |
| } | |
| } | |
| output { | |
| stdout { debug => true debug_format => "json"} | |
| redis { host => "172.28.252.54" data_type => "list" key => "logstash_log4j" } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment