Document toolboxDocument toolbox

alphanumPattern

Convert each character and digit in an input string to the character 'a' and leave the rest of the string as-is. This operator allows you to group events by patterns rather than actual values or to transform values into patterns and then group by the patterns.

Usage details

LQL Command

select alphanumPattern(column) as resultCol from table

Example

Input
table = github_logs

LQL command

select *, alphanumPattern(col1) as result from table

Output

id

col1

result

id

col1

result

1

kumar@logichub.com

aaaaa@aaaaaaa.aaa

2

emil@logichub.com

aaaa@aaaaaaa.aaa