Last active
March 21, 2017 12:33
-
-
Save megastef/f96f0424353aee5e1c603b0900662d07 to your computer and use it in GitHub Desktop.
log4j logagent pattern
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
originalLine: false | |
patterns: | |
- # log4j logs, please replace sourceName with a pattern for your image or container name | |
sourceName: !!js/regexp /.*/i | |
blockStart: !!js/regexp /^\d+\/\d+\/\d+\s/ | |
match: | |
- regex: !!js/regexp /(\d+\/\d+\/\d+\s\d+\:\d+\:\d+)\s\S+\s\S+\s\[(\S+)\]\s(\S+)\s+(\S+)\s+-\s+([\S\|\s]+)/i | |
type: yourAppNameLog4j | |
fields: | |
- ts | |
- thread | |
- severity | |
- class | |
- message | |
dateFormat: MM/DD/YYYY HH:mm:ss |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment