答案1
您必须指定查询中所需的列,就像我在下面最后一行所做的那样。
[AzureDiagnostics
| where ResourceProvider =="MICROSOFT.DBFORPOSTGRESQL"
| where Category == "PostgreSQLLogs"
and not (Message contains "connection")
and not (Message contains "does not exist")
| sort by TimeGenerated desc
| project TimeGenerated, Message