Created
June 16, 2020 20:46
-
-
Save Torxsmind/6978d24022ddaac73c2fd8130f290ee0 to your computer and use it in GitHub Desktop.
get oldest and newest logs from log analytics
This file contains hidden or 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
| let oldest = ProtectionStatus | |
| | where TimeGenerated < ago(1h) | |
| | top 10 by TimeGenerated desc; | |
| let newest = ProtectionStatus | |
| | where TimeGenerated < ago(1h) | |
| | top 10 by TimeGenerated asc; | |
| union oldest, newest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment