Skip to content

Commit 8a0b8c3

Browse files
authored
Merge pull request #206501 from MayankBargali-MSFT/patch-80
(AzureCXP) Sorted the output with TimeGenerated
2 parents 4295166 + e1fbba6 commit 8a0b8c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/container-apps/microservices-dapr.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ LOG_ANALYTICS_WORKSPACE_CLIENT_ID=`az containerapp env show --name $CONTAINERAPP
327327
328328
az monitor log-analytics query \
329329
--workspace $LOG_ANALYTICS_WORKSPACE_CLIENT_ID \
330-
--analytics-query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == 'nodeapp' and (Log_s contains 'persisted' or Log_s contains 'order') | project ContainerAppName_s, Log_s, TimeGenerated | take 5" \
331-
--out table
330+
--analytics-query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == 'nodeapp' and (Log_s contains 'persisted' or Log_s contains 'order') | project ContainerAppName_s, Log_s, TimeGenerated | sort by TimeGenerated | take 5" \
331+
--out table |
332332
```
333333

334334
# [PowerShell](#tab/powershell)
@@ -339,7 +339,7 @@ $LOG_ANALYTICS_WORKSPACE_CLIENT_ID=`
339339
340340
az monitor log-analytics query `
341341
--workspace $LOG_ANALYTICS_WORKSPACE_CLIENT_ID `
342-
--analytics-query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == 'nodeapp' and (Log_s contains 'persisted' or Log_s contains 'order') | project ContainerAppName_s, Log_s, TimeGenerated | take 5" `
342+
--analytics-query "ContainerAppConsoleLogs_CL | where ContainerAppName_s == 'nodeapp' and (Log_s contains 'persisted' or Log_s contains 'order') | project ContainerAppName_s, Log_s, TimeGenerated | sort by TimeGenerated | take 5" `
343343
--out table
344344
```
345345

0 commit comments

Comments
 (0)