Hello ,
That error message “Failed to resolve column or scalar expression named ‘remoteIP_s’” typically indicates that the column remoteIP_s does not exist in the data you are querying.
So If remoteIP_s field is only present in some of your data (for example, it might be null or not exist in some logs), you could use the column_ifexists function to check if the column exists before trying to filter on it.
AzureDiagnostics
| extend remoteIP_s = iif(column_ifexists("remoteIP_s","") == true,"","123.456.7.8")
| where Category == "TunnelDiagnosticLog"
| where remoteIP_s == "123.456.7.8"
| project TimeGenerated, OperationName, remoteIP_s, instance_s, Resource, ResourceGroup
| sort by TimeGenerated asc
Could you try that workaround and tell me if this solve your problem.
Cheers,
Luis