Hello @Akhil Nasalwai - MSFT
Seems that now is working, but the Audit search is not visible in PureView Portal and seems tuck in notStarted status.
VERBOSE: GET https://graph.microsoft.com/beta/security/auditLog/queries/660c6c31-9d80-4d79-8630-d97f233b401c with 0-byte payload
DEBUG: GET /beta/security/auditLog/queries/660c6c31-9d80-4d79-8630-d97f233b401c HTTP/1.1
HTTP: graph.microsoft.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Microsoft Windows 10.0.14393; en-US) PowerShell/7.4.6 Invoke-MgGraphRequest
VERBOSE: received 666-byte response of content type application/json
DEBUG: GET https://graph.microsoft.com/beta/security/auditLog/queries/660c6c31-9d80-4d79-8630-d97f233b401c
HTTP/2.0 200 OK
Cache-Control: no-cache
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: 44fca277-c57f-4fac-94ed-747e9343ed71
client-request-id: c4f6605e-4556-4210-ac94-5cc9d07293d6
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"Switzerland North","Slice":"E","Ring":"3","ScaleUnit":"000","RoleInstance":"ZR1PEPF00000756"}}
odata-version: 4.0
Date: Thu, 23 Jan 2025 11:44:56 GMT
Content-Type: application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false; charset=utf-8
Content-Encoding: gzip
{"@odata.context":"https://graph.microsoft.com/beta/$metadata#security/auditLog/queries/$entity","id":"660c6c31-9d80-4d79-8630-d97f233b401c","displayName":"Audit Search Sharepoint 23-Jan-2025 12:44","filterStartDateTime":"2025-01-16T12:44:24.737Z","filterEndDateTime":"2025-01-23T12:44:24.83Z","recordTypeFilters":["SharePointFileOperation"],"keywordFilter":null,"serviceFilters":[],"operationFilters":["fileaccessed","filedownloaded","filepreviewed"],"userPrincipalNameFilters":[],"ipAddressFilters":[],"objectIdFilters":["https://XXXXXXXXXXX.sharepoint.com/sites/XXXXXXXXXXX"],"administrativeUnitIdFilters":[],"status":"notStarted"}
I have a script that check every 30 second the status, but the status is always notStatus after also few hours:
Waiting for audit search to complete. Check 125 after 3690 seconds. Current state notStarted
Waiting for audit search to complete. Check 126 after 3720 seconds. Current state notStarted
Waiting for audit search to complete. Check 127 after 3750 seconds. Current state notStarted
Waiting for audit search to complete. Check 128 after 3780 seconds. Current state notStarted
Waiting for audit search to complete. Check 129 after 3810 seconds. Current state notStarted
Waiting for audit search to complete. Check 130 after 3840 seconds. Current state notStarted