Last active
August 29, 2015 14:07
-
-
Save up1/9e5ce7cce3ee158e7c7f to your computer and use it in GitHub Desktop.
DEmo :: 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
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-8] com.example.logstash.Starter - Sleeping for 9457ms | |
[WARN] 2014-02-19 19:26:03.176 [pool-2-thread-2] com.example.logstash.Starter - Sleeping for 1584ms | |
[INFO] 2014-02-19 19:26:05.687 [main] com.example.logstash.Starter - Result null | |
[INFO] 2014-02-19 19:26:05.687 [main] com.example.logstash.Starter - Result null | |
[ERROR] 2014-02-19 19:26:08.695 [main] com.example.logstash.Starter - null | |
java.util.concurrent.TimeoutException: null | |
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258) ~[na:1.7.0_13] | |
at java.util.concurrent.FutureTask.get(FutureTask.java:119) ~[na:1.7.0_13] | |
at com.example.logstash.Starter.main(Starter.java:43) ~[classes/:na] | |
[ERROR] 2014-02-19 19:26:11.696 [main] com.example.logstash.Starter - null | |
java.util.concurrent.TimeoutException: null | |
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258) ~[na:1.7.0_13] | |
at java.util.concurrent.FutureTask.get(FutureTask.java:119) ~[na:1.7.0_13] | |
at com.example.logstash.Starter.main(Starter.java:43) ~[classes/:na] | |
[INFO] 2014-02-19 19:26:11.696 [main] com.example.logstash.Starter - Result null | |
[INFO] 2014-02-19 19:26:11.696 [main] com.example.logstash.Starter - Result null | |
[INFO] 2014-02-19 19:26:11.697 [main] com.example.logstash.Starter - Result null | |
[INFO] 2014-02-19 19:26:12.639 [main] com.example.logstash.Starter - Result null | |
[INFO] 2014-02-19 19:26:12.639 [main] com.example.logstash.Starter - Result null | |
[INFO] 2014-02-19 19:26:12.639 [main] com.example.logstash.Starter - Result null | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-1] com.example.logstash.Starter - Sleeping for 2506ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-4] com.example.logstash.Starter - Sleeping for 9147ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-9] com.example.logstash.Starter - Sleeping for 3124ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-3] com.example.logstash.Starter - Sleeping for 6239ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-5] com.example.logstash.Starter - Sleeping for 4534ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-10] com.example.logstash.Starter - Sleeping for 1167ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-7] com.example.logstash.Starter - Sleeping for 7228ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-6] com.example.logstash.Starter - Sleeping for 1587ms | |
[WARN] 2014-02-19 19:26:03.175 [pool-2-thread-8] com.example.logstash.Starter - Sleeping for 9457ms | |
[WARN] 2014-02-19 19:26:03.176 [pool-2-thread-2] com.example.logstash.Starter - Sleeping for 1584ms | |
[INFO] 2014-02-19 19:26:05.687 [main] com.example.logstash.Starter - Result null | |
[INFO] 2014-02-19 19:26:05.687 [main] com.example.logstash.Starter - Result null | |
[ERROR] 2014-02-19 19:26:08.695 [main] com.example.logstash.Starter - null | |
java.util.concurrent.TimeoutException: null | |
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258) ~[na:1.7.0_13] | |
at java.util.concurrent.FutureTask.get(FutureTask.java:119) ~[na:1.7.0_13] | |
at com.example.logstash.Starter.main(Starter.java:43) ~[classes/:na] |
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
input { | |
file { | |
add_field => [ 'host', '192.168.0.111' ] | |
path => '/log/csp.log' | |
} | |
} | |
filter { | |
multiline { | |
pattern => '^[^\[]' | |
what => 'previous' | |
} | |
} | |
output { | |
elasticsearch { | |
cluster => 'elasticsearch' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment