I am trying to add values from a dynamic array of integers called utfChars
to a new dynamic array called suspiciousCharactersDetected
but only when they match a specific criteria.
The criteria is that if the value is in the range defined by the suspiciousCharacters
variable then it should be in suspiciousCharactersDetected
else nothing.
How would I do this?
Here is what I have tried so far. When I run this, it prints out all of the values in the dynamic array and not just the "suspicious" ones.
let suspiciousCharacters = range(126,1327,1);
datatable(Column1: dynamic)
[
dynamic([1,2,3,4,5,150,160])
]
| where Column1 has_any (suspiciousCharacters)
//Missing something here?
| mv-expand suspiciousCharactersDetected = Column1 to typeof(int)
| summarize SuspiciousCharacterDetected=makeset(suspiciousCharactersDetected)