CassandraLogs 表的查询

有关在 Azure 门户中使用这些查询的信息,请参阅 Log Analytics 教程。 有关 REST API,请参阅查询

Cassandra 日志

特定节点的 Cassandra 日志,按时间排序(最新日志先显示)。

let nodeIPAddress = "10.0.0.0"; // Replace with your node IP address
CassandraLogs
| where AddressIP == nodeIPAddress
| sort by TimeGenerated desc

Cassandra 错误或警告

Cassandra 中的错误或警告日志,按时间排序(最新日志先显示)。

CassandraLogs
| where Level == "ERROR" or Level == "WARN"
| project TimeGenerated, Level, AddressIp, ThreadName, ThreadId, SourceFile, SourceLine, Message, Exception, EventProduct, EventCategory, EventType
| sort by TimeGenerated desc