Forum Discussion
acabrales666
May 18, 2022Copper Contributor
KQL query not working
Hi everyone, I'm not a kusto expert so bare with me. I'm trying to replace a text to another text... The one in bold is what I'm tryng to use but is not working. Basically the log doesn't make a ...
- May 19, 2022
Would this work, just use ?
datatable (ThreatId:string) ["A value","9999","somthing else"] | extend ThreatId = iif(ThreatId == "9999","URL filtering log",ThreatId)
acabrales666
May 18, 2022Copper Contributor
Hi mikhailf, yes that's correct.
Clive_Watson
May 19, 2022Bronze Contributor
Would this work, just use ?
datatable (ThreatId:string) ["A value","9999","somthing else"]
| extend ThreatId = iif(ThreatId == "9999","URL filtering log",ThreatId)
- Alex_WizardMar 29, 2026Copper Contributor
Hi Clive_Watson!
I'm having a problem related to KQL and would really appreciate your advice.
dnsresources
| where id contains '/dnsZones/a.com'
| project name, id, properties
| order by name asc
I want to improve performance. I've been using dnsresource. I've created a new record set, but when I query it, It doesn't return results immediately like using the kql dnszone resource query. It takes a very long time. Does anyone know how to fix this? Please share your solution with me. Thanks !!!!
- acabrales666May 19, 2022Copper Contributorperfect it works! You are awesome!
- mikhailfMay 19, 2022Steel ContributorYour example seems to be a good one.
"case" can be used instead of "iif" too.