Forum Discussion
acabrales666
May 19, 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 19, 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)
- acabrales666May 19, 2022Copper Contributorperfect it works! You are awesome!
- mikhailfMay 19, 2022Iron ContributorYour example seems to be a good one.
"case" can be used instead of "iif" too.