Dec 06 2019 08:14 AM
I came across this tidbit in https://docs.microsoft.com/en-us/azure/kusto/query/scalar-data-types/string#obfuscated-string-litera... 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?
Dec 09 2019 01:38 AM
Solution
I'm fairly sure this applies only to KQL in Azure Data Explorer and isn't supported by Log Analytics
Dec 09 2019 07:28 AM
@Gary Bushey I don't think obfuscation hides the data in query results, but rather in query logging.
Dec 09 2019 02:31 PM
@CliveWatson Well bummer. Thanks for the answer
Dec 16 2019 04:41 AM
@Gary Bushey : using the obfuscation format is still recommended as it would ensure the string is obfuscated when logged.
Dec 16 2019 05:30 AM
@Ofer_Shezaf I could see using it if you are writing to the logs yourself but if I am using something like the OfficeActivity log I don't see any way that I would be able to control what is obfuscated
Dec 16 2019 06:12 AM
@Gary Bushey : Should have been clearer, I meant when the service logs internally queries execution, and in the future also to users, they are obfuscated.