-
Notifications
You must be signed in to change notification settings - Fork 287
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
Azure AD SignIn Logs Not Parsed #274
Comments
@dsplice The problem with getting logs from PowerShell commands is that Microsoft keeps making changes and keeps threatening to deprecate these commands to force everyone to use Graph API. For Azure logs, it's much easier to send the logs to a storage account (which is what we use in FOR509). |
@Pierre450 Understood. Doesn't help much with my current engagement but will be trying the storage account method in the future. |
@dsplice Take a look at this project: for509.com/invictus-suite |
I gave Invictus-Suite a try. It uses the command I listed in the original issue. I tried importing the resulting file, and the same outcome. It would only parse it generically. No fields brought out, timestamp was all set to the extraction time. So I do not think it is the ConvertTo-Json that is causing the issues, but will continue to dig. |
I have the same problem. All my Microsoft 365 logs, both in CSV and JSON format, are only processed globally. The content log fields are not processed and displayed in Kibana. The date and time were set to the moment of adding them to SOF-ELK. I used the Invictus extractor suite to export the logs via Powershell. I have written the logs directly as JSON files. Are there any options left to try? |
I saw that the files I was trying to play with were in UTF-8 when the signin logs from Invictus were in UTF-16. But since the parser is forcing UTF-8, I doubt that should be an issue. I did notice a very different amount of data coming from Invictus vs other methods, plus key names in the file appear to have different capitalizations. I might look at seeing what it will take to create a logstash config to parse it through, just need time. |
I suspect this is related to #285. If you can send me a sample of a problem file, I can dig in |
I can confirm this issue. Unfortunately, I cannot provide sample data as it is not my data. However, I tried all of the following and importing always failed:
|
@philhagen I see other people are having the same issue that I experienced today. I have exported the Azure SignIn logs using the Invictus-Suite Get-ADSignInLogsGraph. This as you know creates output files in JSON format but when they are ingested into Sof-ElK they are not parsed correctly. Is this still a known issue with no fix as yet? |
Hello all do we have some updates on this issue? |
Apologies. Been a very busy few weeks but after the new VM released, I should have some bandwidth to look at this again. Couple steps:
With answers to those, I can start to dig in. However, in discussion with @Pierre450, and looking at FOR509 lab material in particular, we've had trouble reproducing it. |
I've been working with @invictus-korstiaan on this quite a bit and we think we have a good idea of what the two main problems are (need to get multiline JSON --> ndjson and a field naming capitalization issue). We're working together on the best approach, as well as aligning that approach to data pulled via methods other than the Microsoft Extractor-Suite tools, and the ECS naming scheme. It'll be some work but I wanted to confirm you know it is being actively worked! |
@JoeyInvictus tagging for visibility, let's see if we can change UAL output to NDJSON |
Hi, thanks for bringing this issue to my attention. In the future, feel free to create an issue on the MES page so we can address it as quickly as possible. We will likely add a |
When attempting to ingest AzureAD SignIn logs downloaded from the portal in JSON, the files (EG "InteractiveSignIns_2023-05-08_2023-05-09.json") are not ingested at all.
When attempting to ingest AzureAD SignIn logs downloaded using powershell (eg "Get-AzureADAuditSignInLogs -Filter "userPrincipalName eq '[email protected]'" | ConvertTo-Json | Out-File -FilePath C:\Temp\test\dereklogin.json") the logs are ingested but without any parsing or enrichment.
The data appears different from the data released in FOR509. Not sure if they need a different way of downloading, or if the format has changed.
The text was updated successfully, but these errors were encountered: