Microsoft Log Parser 2.2 Query Language (Light Mode & Dark Mode)#369
Microsoft Log Parser 2.2 Query Language (Light Mode & Dark Mode)#369pryrt merged 1 commit intonotepad-plus-plus:masterfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds new Notepad++ User Defined Language (UDL) definitions for Microsoft Log Parser 2.2 Query Language, providing both Light Mode and Dark Mode variants along with example .pql sample files, and registers them in the repository’s master UDL index.
Changes:
- Added two new UDL XML definitions: Microsoft Log Parser (Light Mode) and (Dark Mode) targeting the
pqlextension. - Added corresponding sample
.pqlfiles with example Log Parser queries/commands. - Updated
udl-list.jsonto include the two new UDL entries.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
udl-list.json |
Registers the two new Microsoft Log Parser UDL entries (light/dark) and points to their sample files. |
UDLs/Microsoft_Log_Parser_Light_Mode.xml |
Defines keyword groups, operators, delimiters, and light-mode styling for .pql. |
UDLs/Microsoft_Log_Parser_Dark_Mode.xml |
Defines keyword groups, operators, delimiters, and dark-mode styling for .pql. |
UDL-samples/Microsoft_Log_Parser_Light_Mode.pql |
Adds example queries/commands intended to showcase highlighting. |
UDL-samples/Microsoft_Log_Parser_Dark_Mode.pql |
Adds the same example set for the dark-mode variant. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <Keywords name="Keywords2">"WITH ROLLUP" ADD AVG BIT_AND BIT_NOT BIT_OR BIT_SHL BIT_SHR BIT_XOR CASE COALESCE COMPUTER_NAME COUNT DIV EXP EXP10 EXTRACT_EXTENSION EXTRACT_FILENAME EXTRACT_PATH EXTRACT_PREFIX EXTRACT_SUFFIX EXTRACT_TOKEN EXTRACT_VALUE FLOOR GROUPING HASHMD5_FILE HASHSEQ HEX_TO_ASC HEX_TO_HEX16 HEX_TO_HEX32 HEX_TO_HEX8 HEX_TO_INT HEX_TO_PRINT INDEX_OF INT_TO_IPV4 IN_ROW_NUMBER IPV4_TO_INT LAST_INDEX_OF LOG LOG10 LTRIM MAX MIN MOD MUL OUT_ROW_NUMBER PROPCOUNT PROPSUM QNTFLOOR_TO_DIGIT QNTROUND_TO_DIGIT QUANTIZE REPLACE_CHR REPLACE_IF_NOT_NULL REPLACE_IF_NULL REPLACE_STR RESOLVE_SID REVERSEDNS ROLLUP ROT13 ROUND RTRIM SEQUENCE SQR SQRROOT STRCAT STRCNT STRLEN STRREPEAT STRREV SUB SUBSTR SUM SYSTEM_DATE SYSTEM_TIME SYSTEM_TIMESTAMP SYSTEM_UTCOFFSET TIMESTAMP TO_DATE TO_HEX TO_INT TO_LOCALTIME TO_LOWERCASE TO_REAL TO_STRING TO_TIME TO_TIMESTAMP TO_UPPERCASE TO_UTCTIME TRIM URLESCAPE URLUNESCAPE WIN32_ERROR_DESCRIPTION</Keywords> | ||
| <Keywords name="Keywords3">"GROUP BY" "IS NOT NULL" "IS NULL" "ORDER BY" ALL AND ANY AS ASC BETWEEN BY DESC DISTINCT ELSE END FALSE FROM HAVING IN INTO JOIN LIKE NOT NULL ON OR SELECT THEN TOP TRUE USING WHEN WHERE</Keywords> | ||
| <Keywords name="Keywords4">ADS BIN CHART COM CSV DATAGRID ETW EVT FS HTTPERR IIS IISODBC IISW3C NAT NCSA NETMON REG SQL SYSLOG TEXTLINE TEXTWORD TPL TSV URLSCAN W3C XML</Keywords> | ||
| <Keywords name="Keywords5">-autoScroll -binaryFormat -c -categories -chartTitle -chartType -clearTable -colSep -comment -compact -compactModeSep -conf -config -consolidateLogs -createTable -dQuotes -database -dirTime -direct -direction -discardOversized -driver -dsn -dtEventsLive -dtEventsLog -dtLines -dtNodes -e -encodeDelim -expandEnums -fMode -fNames -facility -fieldName -file -fileMode -fileType -fixColNames -fixedFields -fixedSep -flushPeriod -formatMsg -fullEventCode -fullText -groupSize -h -headerRow -headers -hostName -i -iCOMParams -iCOMServer -iCheckpoint -iCodepage -iDQuotes -iHeaderFile -iProgID -iSeparator -iTsFormat -ignoreDSErrors -ignoreDspchErrs -ignoreEventTrace -ignoreIdCols -ignoreLostEvents -ignoreMinWarns -iw -legend -lineFilter -locale -maxCategoryLabels -maxPacketSize -maxStrFieldLen -minDateMod -msgErrorMode -multiSZSep -multiValuedSep -nFields -nSep -nSkipLines -noEmptyField -noEmptyFile -o -oCodepage -oConnString -oDQuotes -oDirTime -oSeparator -oTsFormat -objClass -parseBinary -password -processName -protocol -providers -q -queryInfo -rAlign -recurse -resolveSIDs -restoreDefaults -rootName -rootXPath -rowName -rtp -saveDefaults -schemaServer -schemaType -separator -server -severity -sourcePort -spaceCol -standAlone -stats -stringsSep -structure -tabs -tpl -tplFooter -tplHeader -transactionRowCount -username -values -view file </Keywords> |
There was a problem hiding this comment.
There is an extra trailing space before the closing </Keywords> tag here (... file </Keywords>). While likely harmless, it can introduce an unintended empty token and makes the Dark Mode UDL inconsistent with the Light Mode version; remove the extra whitespace.
| <Keywords name="Keywords5">-autoScroll -binaryFormat -c -categories -chartTitle -chartType -clearTable -colSep -comment -compact -compactModeSep -conf -config -consolidateLogs -createTable -dQuotes -database -dirTime -direct -direction -discardOversized -driver -dsn -dtEventsLive -dtEventsLog -dtLines -dtNodes -e -encodeDelim -expandEnums -fMode -fNames -facility -fieldName -file -fileMode -fileType -fixColNames -fixedFields -fixedSep -flushPeriod -formatMsg -fullEventCode -fullText -groupSize -h -headerRow -headers -hostName -i -iCOMParams -iCOMServer -iCheckpoint -iCodepage -iDQuotes -iHeaderFile -iProgID -iSeparator -iTsFormat -ignoreDSErrors -ignoreDspchErrs -ignoreEventTrace -ignoreIdCols -ignoreLostEvents -ignoreMinWarns -iw -legend -lineFilter -locale -maxCategoryLabels -maxPacketSize -maxStrFieldLen -minDateMod -msgErrorMode -multiSZSep -multiValuedSep -nFields -nSep -nSkipLines -noEmptyField -noEmptyFile -o -oCodepage -oConnString -oDQuotes -oDirTime -oSeparator -oTsFormat -objClass -parseBinary -password -processName -protocol -providers -q -queryInfo -rAlign -recurse -resolveSIDs -restoreDefaults -rootName -rootXPath -rowName -rtp -saveDefaults -schemaServer -schemaType -separator -server -severity -sourcePort -spaceCol -standAlone -stats -stringsSep -structure -tabs -tpl -tplFooter -tplHeader -transactionRowCount -username -values -view file </Keywords> | |
| <Keywords name="Keywords5">-autoScroll -binaryFormat -c -categories -chartTitle -chartType -clearTable -colSep -comment -compact -compactModeSep -conf -config -consolidateLogs -createTable -dQuotes -database -dirTime -direct -direction -discardOversized -driver -dsn -dtEventsLive -dtEventsLog -dtLines -dtNodes -e -encodeDelim -expandEnums -fMode -fNames -facility -fieldName -file -fileMode -fileType -fixColNames -fixedFields -fixedSep -flushPeriod -formatMsg -fullEventCode -fullText -groupSize -h -headerRow -headers -hostName -i -iCOMParams -iCOMServer -iCheckpoint -iCodepage -iDQuotes -iHeaderFile -iProgID -iSeparator -iTsFormat -ignoreDSErrors -ignoreDspchErrs -ignoreEventTrace -ignoreIdCols -ignoreLostEvents -ignoreMinWarns -iw -legend -lineFilter -locale -maxCategoryLabels -maxPacketSize -maxStrFieldLen -minDateMod -msgErrorMode -multiSZSep -multiValuedSep -nFields -nSep -nSkipLines -noEmptyField -noEmptyFile -o -oCodepage -oConnString -oDQuotes -oDirTime -oSeparator -oTsFormat -objClass -parseBinary -password -processName -protocol -providers -q -queryInfo -rAlign -recurse -resolveSIDs -restoreDefaults -rootName -rootXPath -rowName -rtp -saveDefaults -schemaServer -schemaType -separator -server -severity -sourcePort -spaceCol -standAlone -stats -stringsSep -structure -tabs -tpl -tplFooter -tplHeader -transactionRowCount -username -values -view file</Keywords> |
http://www.logparser.com/
https://www.microsoft.com/en-us/download/details.aspx?id=24659
https://en.wikipedia.org/wiki/Logparser