-
Notifications
You must be signed in to change notification settings - Fork 259
Open
Description
Context: I'm using PowerBI to import Snaffler JSON output, and noticed some things that made it difficult to import and report off of.
Basically, I get 40 or so JSON keys, each duplicated 4 times when importing in PowerBI:
eventProperties.Black.FileResult.FileInfo.LastAccessTime
eventProperties.Black.FileResult.FileInfo.Extension
eventProperties.Black.FileResult.RwStatus.CanRead
eventProperties.Black.FileResult.MatchedRule.RuleName
eventProperties.Black.FileResult.FileInfo.FullName
(...)
eventProperties.Red.FileResult.FileInfo.LastAccessTime
eventProperties.Red.FileResult.FileInfo.Extension
eventProperties.Red.FileResult.RwStatus.CanRead
eventProperties.Red.FileResult.MatchedRule.RuleName
eventProperties.Red.FileResult.FileInfo.FullName
(...)
eventProperties.Yellow.FileResult.FileInfo.LastAccessTime
eventProperties.Yellow.FileResult.FileInfo.Extension
eventProperties.Yellow.FileResult.RwStatus.CanRead
eventProperties.Yellow.FileResult.MatchedRule.RuleName
eventProperties.Yellow.FileResult.FileInfo.FullName
(...)
eventProperties.Green.FileResult.FileInfo.LastAccessTime
eventProperties.Green.FileResult.FileInfo.Extension
eventProperties.Green.FileResult.RwStatus.CanRead
eventProperties.Green.FileResult.MatchedRule.RuleName
eventProperties.Green.FileResult.FileInfo.FullName
(...)
I propose the sub-key Black/Red/Yellow/Green be eliminated entirely, and flattened so that it's stored under eventProperties.Severity or something similar. It would make importing this JSON into tools like PowerBI much easier and reporting simpler.
Example:
{
eventProperties: {
severity: "Green",
data: { (data goes here) }
}
}
Metadata
Metadata
Assignees
Labels
No labels