-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-AzureRmLog maxevents not honored #3957
Comments
@gucalder can you take a look? |
any updates? |
I am checking the code and, initially, I cannot find any issue with it. I am still testing and will let you know when I am done with the investigation. Please try a query like this for the same time period: $events = Get-AzureRmLog -MaxEvents 50 I am also checking for the possibility of a regression/bug in the backend, i.e. it is returning only chunks of 200 records and no continuation token. I am also asking around to figure out if there has changed lately. The cmdlet does not do anything to the records returned by the backend, it only follows the continuation token until the there are no more records or the maxEvents is reached, whatever happens first. Can I have the link to the documentation. There might be some errors there too. This documents are written manually, there might be several versions of them, and there have been changes through time, perhaps we did not update all the places correctly. |
so I downloaded the csv of the last week from the portal and in there I see 697 events for the past week. If i run Get-AzureRmEvent I only see 200 events. If I look the timestamp seems to be from 3:07am to 1:07pm. Running Get-AzureRmLog -MaxEvents 50 returns just 50. Get-AzureRmLog documentation link. |
The back end is returning the data in 200 record pages. |
…rning at most 200 records despite of MaxEvents
…d. Fixing some documentation issue in the GetAzureRmLogCommand.cs.
[Monitor] Fixing issue #3957: bug in Get-AzureRmLog cmdlet, returning…
@johndehavilland this fix can be found in version 4.2.0 of Azure PowerShell |
Running into a mismatch of behavior with the Get-AzureRmLog cmd and the documentation.
If I run Get-AzureRmLog it seems to return 200 events regardless whether I specify a higher -MaxEvents property. According to the docs, the default is 1000 but that does not seem to be the case.
It also seems to, by default just return a days worth of events not an hour like the documentation suggests.
The text was updated successfully, but these errors were encountered: