Last active
February 10, 2022 07:34
-
-
Save acanalesg/5d0e6caa24cf1cabc09b862c14a778c3 to your computer and use it in GitHub Desktop.
Logs from LogAnalytics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get last hour logs from container instance | |
az monitor log-analytics query -w 58ca4766-72b7-4610-8d1c-4b6a88a49a01 \ | |
--analytics-query "ContainerInstanceLog_CL | where ContainerGroup_s == 'ds-tr-retail-price-engine-training-dev-process' | project Message" \ | |
-t P0DT1H --output tsv | sed 's/PrimaryResult//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
change ContainerGroup_s appropiately
and timespan -t P0DT1H (past 0 days and 1 hour)