Azure Log Analytics API — Query with row_number() Fails with E_LOW_MEMORY_CONDITION Error
Atul Bansal (Trianz)
0
Reputation points
I am using the Azure Log Analytics REST API (https://api.loganalytics.io/v1/workspaces/{workspaceId}/query
) to fetch logs in batches.
My KQL query looks like this:
Event
| where TimeGenerated > datetime('2025-07-12T15:47:10.492564300Z')
and TimeGenerated <= datetime('2025-08-11T15:47:10.492564300Z')
| order by TimeGenerated asc
| serialize RowIndex = row_number()
| where RowIndex > 0
| take 499
When I run this query, I get the following error response from the API:
"error": {
"code": "PartialError",
"message": "There were some errors when processing your query.",
"details": [
{
"code": "EngineError",
"message": "Something went wrong processing your query on the server.",
"innererror": {
"code": "-2133196793",
"message": "Partial query failure: Low memory condition (E_LOW_MEMORY_CONDITION). (message: bad allocation (E_LOW_MEMORY_CONDITION))",
"severity": 2,
"severityName": "Error"
}
}
]
}
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Sign in to answer