Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kiyoto
Created February 5, 2014 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiyoto/8818608 to your computer and use it in GitHub Desktop.
Save kiyoto/8818608 to your computer and use it in GitHub Desktop.
Testing multiline for Windows
2013-3-03 14:27:33 [main] INFO Main - Start
2013-3-03 14:27:33 [main] ERROR Main - Exception
javax.management.RuntimeErrorException: null
at Main.main(Main.java:16) ~[bin/:na]
2013-3-03 14:27:33 [main] INFO Main - End
<source>
type tail_multiline
tag test
format /^(?<time>\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}:\d{1,2}) \[(?<thread>.*)\] (?<level>[^\s]+)(?<message>.*)/
path <PATH/TO/YOUR/LOG4J/LOG>
</source>
<match test>
type stdout
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment