MS Teams Logs Reader

%3CLINGO-SUB%20id%3D%22lingo-sub-3196438%22%20slang%3D%22en-US%22%3EMS%20Teams%20Logs%20Reader%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3196438%22%20slang%3D%22en-US%22%3E%3CP%3E%3CBR%20%2F%3EHello%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThe%20goal%20of%20this%20post%20is%20to%20simplify%20the%20reading%20of%20the%20MS%20Teams%20Logs%20with%20a%20tool%20to%20make%20them%20more%20readable%20by%20the%20human%20eye%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LucaSain_0-1645501631506.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350163i6D3EB1D3B43B5AEE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LucaSain_0-1645501631506.png%22%20alt%3D%22LucaSain_0-1645501631506.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EFor%20example%2C%20reading%20the%20logs%20generated%20by%20MS%20Teams%20using%20the%20notepad%20is%20very%20difficult%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LucaSain_1-1645501645674.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350164iDC84DEDB8045B630%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LucaSain_1-1645501645674.png%22%20alt%3D%22LucaSain_1-1645501645674.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ehere%20is%20when%20I%20recommend%20to%20use%20the%20open-source%20tool%20called%20LogExpert%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LucaSain_2-1645501789674.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350165i932AE3BBEE9D0696%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LucaSain_2-1645501789674.png%22%20alt%3D%22LucaSain_2-1645501789674.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3Eto%20follow%20this%20tutorial%20we%20need%20to%20have%20already%20installed%20a%20Log%20Reader%20Software%20called%20LogExpert%2C%20you%20can%20find%20the%20installation%20instructions%20in%20this%20link%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fzarunbal%2FLogExpert%26amp%3Bnbsp%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fzarunbal%2FLogExpert%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EInside%20LogExpert%20we%20need%20to%20configure%20it%20to%20recognize%20the%20ms%20teams%20log%20information%20as%20separated%20columns%20and%20also%20style%20it%20with%20your%20favourite%20colours%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3EColumns%20configuration%3C%2FFONT%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOptions%20-%26gt%3B%20Columnizer%3CBR%20%2F%3E%3CBR%20%2F%3EChoose%20a%20Columnizer%20(Choose%20one%20of%20the%20RegexX%20default%20profiles)%3C%2FP%3E%3CP%3EClick%20on%20Config%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LucaSain_3-1645501812174.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350166iD0B02B00A261E2DD%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LucaSain_3-1645501812174.png%22%20alt%3D%22LucaSain_3-1645501812174.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EInside%20the%20Regex%20text%20field%20insert%20the%20following%20regular%20expression%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LucaSain_4-1645501820445.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350167i64AF723AC6231321%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LucaSain_4-1645501820445.png%22%20alt%3D%22LucaSain_4-1645501820445.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ESimple%20Regex%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-regex%22%3E%3CCODE%3E(%5BSun%7CMon%7CTue%7CWed%7CThu%7CFri%7CSat%5D%7B3%2C%7D%5B%5Cs%5D%5BJan%7CFeb%7CMar%7CApr%7CMay%7CJun%7CJul%7CAug%7CSep%7COct%7CNov%7CDec%5D%7B3%2C%7D%5B%5Cs%5D%5B0-9%5D%7B2%2C%7D%5B%5Cs%5D%5B0-9%5D%7B4%2C%7D%5B%5Cs%5D%5B0-9%5D%7B2%2C%7D(%3F%3A%3A%5B0-9%5D%7B2%2C%7D(%3F%3A%3A%5B0-9%5D%7B2%2C%7D)%5B%5Cs%5D))(GMT%5B%5C%2B%7C-%5D%5B0-1%5D%5B0-9%5D%7B3%7D)%3F%5B%5Cs%5D%5C((.*)%5C)%5B%5Cs%5D(%26amp%3Blt%3B%5B0-9%5D%2B%26amp%3Bgt%3B%5B%5Cs%5D)(--%5Cs%5Ba-z%5D%2B%5Cs--%5B%5Cs%5D)(.*)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20same%20but%20enhanced%20and%20with%20headers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-regex%22%3E%3CCODE%3E(%3F%3CDATE%3E%5BSun%7CMon%7CTue%7CWed%7CThu%7CFri%7CSat%5D%7B3%2C%7D%5B%5Cs%5D%5BJan%7CFeb%7CMar%7CApr%7CMay%7CJun%7CJul%7CAug%7CSep%7COct%7CNov%7CDec%5D%7B3%2C%7D%5B%5Cs%5D%5B0-9%5D%7B2%2C%7D%5B%5Cs%5D%5B0-9%5D%7B4%2C%7D)%5B%5Cs%5D(%3F%3CTIME%3E%5B0-9%5D%7B2%2C%7D(%3F%3A%3A%5B0-9%5D%7B2%2C%7D(%3F%3A%3A%5B0-9%5D%7B2%2C%7D)))%5B%5Cs%5D(%3F%3CTIMEZONE%3EGMT%5B%5C%2B%7C-%5D%5B0-1%5D%5B0-9%5D%7B3%7D%3F%5B%5Cs%5D%5C(.*%5C))%5B%5Cs%5D(%3F%3CTHREAD%3E%26lt%3B%5B0-9%5D%2B%26gt%3B)%5B%5Cs%5D(%3F%3CLEVEL%3E--%5Cs%5Ba-z%5D%2B%5Cs--%5B%5Cs%5D)(%3F%3CMESSAGE%3E.*)%3C%2FMESSAGE%3E%3C%2FLEVEL%3E%3C%2FTHREAD%3E%3C%2FTIMEZONE%3E%3C%2FTIME%3E%3C%2FDATE%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CFONT%20size%3D%225%22%3EHighlights%20configuration%3C%2FFONT%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOptions%20-%26gt%3B%20Highlighting%20and%20triggers%3CBR%20%2F%3EClick%20on%20New%20to%20create%20the%20group%20of%20Highlights%3CBR%20%2F%3EClick%20on%20Add%20to%20generate%20new%20Highlights%20rules%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LucaSain_5-1645501833276.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F350168iB5B7A4218C40FF61%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22LucaSain_5-1645501833276.png%22%20alt%3D%22LucaSain_5-1645501833276.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ehere%20you%20can%20choose%20your%20favourite%20colours%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EList%20of%20MS%20Teams%20Log%20Levels%3CBR%20%2F%3E--%20error%20--%3CBR%20%2F%3E--%20info%20--%3CBR%20%2F%3E--%20warning%20--%3CBR%20%2F%3E--%20event%20--%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E*%20I%20say%20this%20because%20of%20what%20I%20have%20seen%20in%20the%20log%20files%2C%20this%20list%20could%20be%20updated%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ELogExpert%20Documentation%3A%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocumentation.help%2FLogExpert%2Fdocumentation.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdocumentation.help%2FLogExpert%2Fdocumentation.pdf%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3196438%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETools%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etroubleshooting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor


Hello,


The goal of this post is to simplify the reading of the MS Teams Logs with a tool to make them more readable by the human eye

 

LucaSain_0-1645501631506.png

 


For example, reading the logs generated by MS Teams using the notepad is very difficult

LucaSain_1-1645501645674.png

 


here is when I recommend to use the open-source tool called LogExpert

LucaSain_2-1645501789674.png

 


to follow this tutorial we need to have already installed a Log Reader Software called LogExpert, you can find the installation instructions in this link https://github.com/zarunbal/LogExpert

 

 


Inside LogExpert we need to configure it to recognize the ms teams log information as separated columns and also style it with your favourite colours

 


Columns configuration

Options -> Columnizer

Choose a Columnizer (Choose one of the RegexX default profiles)

Click on Config

LucaSain_3-1645501812174.png

 



Inside the Regex text field insert the following regular expression:

LucaSain_4-1645501820445.png

 


Simple Regex:

 

 

 

([Sun|Mon|Tue|Wed|Thu|Fri|Sat]{3,}[\s][Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]{3,}[\s][0-9]{2,}[\s][0-9]{4,}[\s][0-9]{2,}(?::[0-9]{2,}(?::[0-9]{2,})[\s]))(GMT[\+|-][0-1][0-9]{3})?[\s]\((.*)\)[\s](<[0-9]+>[\s])(--\s[a-z]+\s--[\s])(.*)

 

 

 

 

The same but enhanced and with headers.

 

 

 

(?<Date>[Sun|Mon|Tue|Wed|Thu|Fri|Sat]{3,}[\s][Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]{3,}[\s][0-9]{2,}[\s][0-9]{4,})[\s](?<Time>[0-9]{2,}(?::[0-9]{2,}(?::[0-9]{2,})))[\s](?<Timezone>GMT[\+|-][0-1][0-9]{3}?[\s]\(.*\))[\s](?<Thread><[0-9]+>)[\s](?<Level>--\s[a-z]+\s--[\s])(?<Message>.*)

 

 




Highlights configuration

Options -> Highlighting and triggers
Click on New to create the group of Highlights
Click on Add to generate new Highlights rules

LucaSain_5-1645501833276.png

 


here you can choose your favourite colours


List of MS Teams Log Levels
-- error --
-- info --
-- warning --
-- event --


* I say this because of what I have seen in the log files, this list could be updated


LogExpert Documentation:
https://documentation.help/LogExpert/documentation.pdf

0 Replies