Skip to content

Commit 8b12222

Browse files
committed
[java_log] add pattern for a spring boot app
Related to #1367
1 parent fe22d9a commit 8b12222

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/formats/java_log.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
},
4747
"repeated": {
4848
"pattern": "^(?<timestamp>\\d{4}-\\d{2}-\\d{2}[ T]\\d{2}:\\d{2}:\\d{2}[,\\.]\\d{1,3}) \\^\\^\\^ \\d+ similar messages? omitted \\^\\^\\^$"
49+
},
50+
"spring1": {
51+
"pattern": "(?<timestamp>\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}(?:Z|(?:-|\\+)\\d{2}:?\\d{2}))\\s+(?<level>ERROR|WARN|INFO|DEBUG|TRACE)\\s+(?<pid>\\d+)\\s+---\\s+\\[[^\\]]+\\]\\s+\\[\\s*(?<thread>[^\\]]+)\\]\\s+\\[\\s*(?<opid>[^\\]]+)\\s*\\]\\s+(?<class>[^: ]+)\\s*:\\s+(?<body>.*)"
4952
}
5053
},
5154
"level-field": "level",
@@ -111,6 +114,10 @@
111114
"kind": "string",
112115
"identifier": true
113116
},
117+
"pid": {
118+
"kind": "string",
119+
"identifier": true
120+
},
114121
"body": {
115122
"kind": "string"
116123
}
@@ -188,6 +195,9 @@
188195
},
189196
{
190197
"line": "2024-07-18 14:06:40.554 ^^^ 1 similar message omitted ^^^"
198+
},
199+
{
200+
"line": "2025-01-14T16:10:44.175-07:00 INFO 93649 --- [Course Creation] [ task-1] [6618a4de8f36bf71c60b2982181e6d36-c66827472589372a] e.c.o.s.c.c.ConsumerService : Received new unassociated section CanvasSection(course=ABCD1234, term=2251, sectionSourcedId=123456-01-2251-B-100-12345, title=A test title, section=null, sessionCode=null, activityType=LEC, classNumber=null, academicOrgCode=null, startDate=2025-01-11, endDate=2025-05-09, enrollments=[CanvasEnrollment(emplid=123456, role=PI, sectionSourcedId=123456-01-2251-B-100-12345)])"
191201
}
192202
]
193203
}

0 commit comments

Comments
 (0)