Document toolboxDocument toolbox

generalizeLong

Return "$long$" if a string is convertible to long format; otherwise return the input string. Useful for log obfuscation.

Usage Details

LQL Command

select generalizeLong(column) as resultCol from table

Example

Input
table

date
2017-04-11T04:32:51Z
2017

LQL command

select *, generalizeLong(date) as a resultCol from table

Output

date resultCol
2017-04-11T04:32:51Z2017-04-11T04:32:51Z
2017$long$