RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Log4j Splitting Regex
Expression
(<log4j:Event logger=")(.*?)(" timestamp=")(.*?)(" level=")(.*?)(" thread=")(.*?)(">)(.*?)(<log4j:Message><!\[CDATA\[)(.*?)(\]\]>)
Description
This is a regex to split a message by log4j into: Logger (Group 2) Timestamp (Group 4) Loggin Level (Group 6) Thread (Group 8) Message (Group 12) Important: You have to enable single line
Matches
<log4j:Event logger="dxa" timestamp="1564402596208" level="INFO" thread="Client thread"> <log4j:Message><![CDATA[Message from log4j]]></log4j:Message> </log4j:Event>
Non-Matches
asdf
Author Rating: Not yet rated. nico
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials