Forum Discussion
GaryBushey
Dec 06, 2019Bronze Contributor
Obfuscated string literals
I came across this tidbit in https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/string#obfuscated-string-literals about obfuscating string literals in KQL and it gives this example
print x="https://contoso.blob.core.windows.net/container/blob.txt?" h'sv=2012-02-12&se=2013-04-13T0...'
However when I run it, nothing gets obfuscated. Based on my reading I should see:
https://contoso.blob.core.windows.net/container/blob.txt?*****************************
but I don't. Has anyone else tried this?
I'm fairly sure this applies only to KQL in Azure Data Explorer and isn't supported by Log Analytics
- Ofer_Shezaf
Microsoft
GaryBushey I don't think obfuscation hides the data in query results, but rather in query logging.
- CliveWatson
Microsoft
I'm fairly sure this applies only to KQL in Azure Data Explorer and isn't supported by Log Analytics
- GaryBusheyBronze Contributor
CliveWatson Well bummer. Thanks for the answer
- Ofer_Shezaf
Microsoft
GaryBushey : using the obfuscation format is still recommended as it would ensure the string is obfuscated when logged.