Forum Discussion

dmarquesgn's avatar
dmarquesgn
Iron Contributor
Jan 26, 2023
Solved

Search-UnifiedAuditLog limitation on number of results

Hi, I need to extract PowerBI audit logs in order to get some valuable information. So, I'm using Search-UnifiedAuditLog command, which according to the documentation could parse 50.000 records. B...
  • VasilMichev's avatar
    VasilMichev
    Jan 27, 2023
    The variable is getting overwritten at every "page", so on each append, new results are added (usorted!) The cycle will run until the "last" page is returned, which should contain 0 entries, thus invalidating the condition.
    The example above works fine in my tenant, I fetched 30k+ records with it, with no duplication at least according to Excel 🙂
    The only thing I changed was to remove the RecordType, as I don't have that many events in my personal tenant.