Regex Examples and Cookbook/Extract log level

Capture common log levels from log lines.

Section: Extraction Recipes

Extract log level

regex
regex
\b(INFO|WARN|WARNING|ERROR|DEBUG|TRACE|FATAL)\b
Explanation

Helpful for log triage and indexing.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Extraction Recipes
Extract URLs
Find basic HTTP or HTTPS URLs.
OpenIn sheetregexsame section
Extract emails
Find email-like tokens in text.
OpenIn sheetregexsame section
Extract markdown links
Capture label and URL from markdown links.
OpenIn sheetregexsame section
Capture a simple CSV field
Extract a non-quoted CSV field token.
OpenIn sheetregexsame section
Extract fenced code block
Match a markdown fenced code block.
OpenIn sheetregexsame section
UUID shape
Match a standard hyphenated UUID.