Skip to content
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

Need to deal with the 50k Item limit #22

Closed
Canthv0 opened this issue Aug 28, 2019 · 3 comments
Closed

Need to deal with the 50k Item limit #22

Canthv0 opened this issue Aug 28, 2019 · 3 comments
Labels
type/feature New feature or request

Comments

@Canthv0
Copy link
Contributor

Canthv0 commented Aug 28, 2019

Search-UnifiedAuditLog will only return 50k items. If the search gets back >50k items we have two issues:

  1. How do we get all of the items back and not just the 50K
  2. Right now the return gets stuck in a loop and will keep trying to get back the 50k
@davidrudduck
Copy link

Could you use something like the example script at this url (https://blogs.msdn.microsoft.com/tehnoonr/2018/01/26/retrieving-office-365-audit-data-using-powershell/) to pull down the Unified Audit Log in 15 minute chunks?

Or start with 60 minute chunks and if the query produces > 5,000 results reduce the time slice further to help optimise the pull.

I hacked at the above script and managed to pull down 1.2GB worth of Unified Audit Log for a tenancy before it finally crapped out.

@T0pCyber T0pCyber added the type/feature New feature or request label Apr 15, 2021
@T0pCyber
Copy link
Owner

Does Robust Cloud Command help against this restriction?

@jonnybottles
Copy link
Collaborator

To more efficiently track and resolve this issue, we've opened a new ticket:

Ticket #153: Implement Logic to Handle Result Size and Item Limits in Scripts
This new ticket consolidates the discussions and focuses our efforts on implementing a robust solution. We will be closing Ticket #22 and Ticket #93 in favor of this new ticket.

Please feel free to follow the progress on Ticket #153 and contribute any additional feedback or suggestions there. Your input is invaluable in helping us improve Hawk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants