-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parsers/ASimDns/Parsers/*: addressing further review findings
* addressing further review findings by vakohl * added sample and test outputs for the parsers Signed-off-by: Janos Szigetvari <janos.szigetvari@nxlog.org>
- Loading branch information
1 parent
77d399a
commit 1b01c19
Showing
9 changed files
with
1,200 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Parsers/ASimDns/Tests/Microsoft_DNS Server_Dns_DataTest_ASimDnsMicrosoftNXLog.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Result | ||
"(1) Warning: Empty value in 297 records (36.13%) in mandatory field [Src] (Schema:Dns)" | ||
"(2) Info: Empty value in 20 records (2.43%) in optional field [SrcPortNumber] (Schema:Dns)" | ||
"(2) Info: Empty value in 219 records (26.64%) in optional field [EventOriginalUid] (Schema:Dns)" | ||
"(2) Info: Empty value in 297 records (36.13%) in recommended field [SrcIpAddr] (Schema:Dns)" | ||
"(2) Info: Empty value in 31 records (3.77%) in optional field [DnsResponseName] (Schema:Dns)" | ||
"(2) Info: Empty value in 318 records (38.69%) in optional field [DnsFlagsRecursionDesired] (Schema:Dns)" | ||
"(2) Info: Empty value in 536 records (65.21%) in optional field [DnsFlagsAuthenticated] (Schema:Dns)" | ||
"(2) Info: Empty value in 536 records (65.21%) in optional field [DnsFlagsAuthoritative] (Schema:Dns)" | ||
"(2) Info: Empty value in 726 records (88.32%) in optional field [DnsResponseCode] (Schema:Dns)" |
8 changes: 8 additions & 0 deletions
8
Parsers/ASimDns/Tests/Microsoft_DNS Server_Dns_DataTest_vimDnsMicrosoftNXLog.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Result | ||
"(1) Warning: Empty value in 201 records (100.0%) in mandatory field [Src] (Schema:Dns)" | ||
"(2) Info: Empty value in 11 records (5.47%) in optional field [DnsFlagsRecursionDesired] (Schema:Dns)" | ||
"(2) Info: Empty value in 11 records (5.47%) in optional field [DnsResponseName] (Schema:Dns)" | ||
"(2) Info: Empty value in 201 records (100.0%) in optional field [DnsFlagsAuthenticated] (Schema:Dns)" | ||
"(2) Info: Empty value in 201 records (100.0%) in optional field [DnsFlagsAuthoritative] (Schema:Dns)" | ||
"(2) Info: Empty value in 201 records (100.0%) in optional field [DnsResponseCode] (Schema:Dns)" | ||
"(2) Info: Empty value in 201 records (100.0%) in recommended field [SrcIpAddr] (Schema:Dns)" |
118 changes: 118 additions & 0 deletions
118
Parsers/ASimDns/Tests/Microsoft_DNS Server_Dns_SchemaTest_ASimDnsMicrosoftNXLog.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
Result | ||
"(1) Warning: Missing recommended field [DnsQueryClassName]" | ||
"(1) Warning: Missing recommended field [Dst]" | ||
"(1) Warning: Missing recommended field [DvcDomain]" | ||
"(1) Warning: Missing recommended field [EventUid]" | ||
"(1) Warning: Missing recommended field [SrcDomain]" | ||
"(1) Warning: Missing recommended field [SrcHostname]" | ||
"(2) Info: Missing optional alias [DomainCategory] aliasing non-existent column [UrlCategory]" | ||
"(2) Info: Missing optional alias [Duration] aliasing non-existent column [DnsNetworkDuration]" | ||
"(2) Info: Missing optional alias [Process] aliasing non-existent column [SrcProcessName]" | ||
"(2) Info: Missing optional alias [SessionId] aliasing non-existent column [DnsSessionId]" | ||
"(2) Info: Missing optional alias [User] aliasing non-existent column [SrcUsername]" | ||
"(2) Info: Missing optional field [AdditionalFields]" | ||
"(2) Info: Missing optional field [DnsFlagsCheckingDisabled]" | ||
"(2) Info: Missing optional field [DnsFlagsRecursionAvailable]" | ||
"(2) Info: Missing optional field [DnsFlagsTruncated]" | ||
"(2) Info: Missing optional field [DnsFlagsZ]" | ||
"(2) Info: Missing optional field [DnsNetworkDuration]" | ||
"(2) Info: Missing optional field [DnsQueryClass]" | ||
"(2) Info: Missing optional field [DnsResponseIpCity]" | ||
"(2) Info: Missing optional field [DnsResponseIpCountry]" | ||
"(2) Info: Missing optional field [DnsResponseIpLatitude]" | ||
"(2) Info: Missing optional field [DnsResponseIpLongitude]" | ||
"(2) Info: Missing optional field [DnsResponseIpRegion]" | ||
"(2) Info: Missing optional field [DnsSessionId]" | ||
"(2) Info: Missing optional field [DstDescription]" | ||
"(2) Info: Missing optional field [DstDeviceType]" | ||
"(2) Info: Missing optional field [DstDomain]" | ||
"(2) Info: Missing optional field [DstDvcId]" | ||
"(2) Info: Missing optional field [DstDvcScopeId]" | ||
"(2) Info: Missing optional field [DstDvcScope]" | ||
"(2) Info: Missing optional field [DstFQDN]" | ||
"(2) Info: Missing optional field [DstGeoCity]" | ||
"(2) Info: Missing optional field [DstGeoCountry]" | ||
"(2) Info: Missing optional field [DstGeoLatitude]" | ||
"(2) Info: Missing optional field [DstGeoLongitude]" | ||
"(2) Info: Missing optional field [DstGeoRegion]" | ||
"(2) Info: Missing optional field [DstHostname]" | ||
"(2) Info: Missing optional field [DstIpAddr]" | ||
"(2) Info: Missing optional field [DstOriginalRiskLevel]" | ||
"(2) Info: Missing optional field [DstPortNumber]" | ||
"(2) Info: Missing optional field [DstRiskLevel]" | ||
"(2) Info: Missing optional field [DvcAction]" | ||
"(2) Info: Missing optional field [DvcDescription]" | ||
"(2) Info: Missing optional field [DvcFQDN]" | ||
"(2) Info: Missing optional field [DvcId]" | ||
"(2) Info: Missing optional field [DvcInterface]" | ||
"(2) Info: Missing optional field [DvcMacAddr]" | ||
"(2) Info: Missing optional field [DvcOriginalAction]" | ||
"(2) Info: Missing optional field [DvcOsVersion]" | ||
"(2) Info: Missing optional field [DvcOs]" | ||
"(2) Info: Missing optional field [DvcScopeId]" | ||
"(2) Info: Missing optional field [DvcScope]" | ||
"(2) Info: Missing optional field [DvcZone]" | ||
"(2) Info: Missing optional field [EventMessage]" | ||
"(2) Info: Missing optional field [EventOriginalSeverity]" | ||
"(2) Info: Missing optional field [EventOriginalSubType]" | ||
"(2) Info: Missing optional field [EventOwner]" | ||
"(2) Info: Missing optional field [EventProductVersion]" | ||
"(2) Info: Missing optional field [EventReportUrl]" | ||
"(2) Info: Missing optional field [EventSeverity]" | ||
"(2) Info: Missing optional field [NetworkProtocolVersion]" | ||
"(2) Info: Missing optional field [RuleName]" | ||
"(2) Info: Missing optional field [RuleNumber]" | ||
"(2) Info: Missing optional field [Rule]" | ||
"(2) Info: Missing optional field [SrcDescription]" | ||
"(2) Info: Missing optional field [SrcDeviceType]" | ||
"(2) Info: Missing optional field [SrcDvcId]" | ||
"(2) Info: Missing optional field [SrcDvcScopeId]" | ||
"(2) Info: Missing optional field [SrcDvcScope]" | ||
"(2) Info: Missing optional field [SrcFQDN]" | ||
"(2) Info: Missing optional field [SrcGeoCity]" | ||
"(2) Info: Missing optional field [SrcGeoCountry]" | ||
"(2) Info: Missing optional field [SrcGeoLatitude]" | ||
"(2) Info: Missing optional field [SrcGeoLongitude]" | ||
"(2) Info: Missing optional field [SrcGeoRegion]" | ||
"(2) Info: Missing optional field [SrcOriginalRiskLevel]" | ||
"(2) Info: Missing optional field [SrcOriginalUserType]" | ||
"(2) Info: Missing optional field [SrcProcessGuid]" | ||
"(2) Info: Missing optional field [SrcProcessId]" | ||
"(2) Info: Missing optional field [SrcProcessName]" | ||
"(2) Info: Missing optional field [SrcRiskLevel]" | ||
"(2) Info: Missing optional field [SrcUserAWSId]" | ||
"(2) Info: Missing optional field [SrcUserAadId]" | ||
"(2) Info: Missing optional field [SrcUserId]" | ||
"(2) Info: Missing optional field [SrcUserOktaId]" | ||
"(2) Info: Missing optional field [SrcUserScopeId]" | ||
"(2) Info: Missing optional field [SrcUserScope]" | ||
"(2) Info: Missing optional field [SrcUserSessionId]" | ||
"(2) Info: Missing optional field [SrcUserSid]" | ||
"(2) Info: Missing optional field [SrcUserType]" | ||
"(2) Info: Missing optional field [SrcUserUid]" | ||
"(2) Info: Missing optional field [SrcUsername]" | ||
"(2) Info: Missing optional field [TenantId]" | ||
"(2) Info: Missing optional field [ThreatCategory]" | ||
"(2) Info: Missing optional field [ThreatConfidence]" | ||
"(2) Info: Missing optional field [ThreatField]" | ||
"(2) Info: Missing optional field [ThreatFirstReportedTime]" | ||
"(2) Info: Missing optional field [ThreatId]" | ||
"(2) Info: Missing optional field [ThreatIpAddr]" | ||
"(2) Info: Missing optional field [ThreatIsActive]" | ||
"(2) Info: Missing optional field [ThreatLastReportedTime]" | ||
"(2) Info: Missing optional field [ThreatName]" | ||
"(2) Info: Missing optional field [ThreatOriginalConfidence]" | ||
"(2) Info: Missing optional field [ThreatOriginalRiskLevel]" | ||
"(2) Info: Missing optional field [ThreatRiskLevel]" | ||
"(2) Info: Missing optional field [UrlCategory]" | ||
"(2) Info: Missing recommended alias [Hostname] aliasing non-existent column [SrcHostname]" | ||
"(2) Info: extra unnormalized column [Category]" | ||
"(2) Info: extra unnormalized column [EventReceivedTime_t]" | ||
"(2) Info: extra unnormalized column [Level]" | ||
"(2) Info: extra unnormalized column [ProviderGuid_g]" | ||
"(2) Info: extra unnormalized column [QueryTypeName]" | ||
"(2) Info: extra unnormalized column [QueryType]" | ||
"(2) Info: extra unnormalized column [Query]" | ||
"(2) Info: extra unnormalized column [ResponseCodeName]" | ||
"(2) Info: extra unnormalized column [ResponseCode]" | ||
"(2) Info: extra unnormalized column [_ResourceId]" |
119 changes: 119 additions & 0 deletions
119
Parsers/ASimDns/Tests/Microsoft_DNS Server_Dns_SchemaTest_vimDnsMicrosoftNXLog.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
Result | ||
"(1) Warning: Missing recommended field [DnsQueryClassName]" | ||
"(1) Warning: Missing recommended field [Dst]" | ||
"(1) Warning: Missing recommended field [DvcDomain]" | ||
"(1) Warning: Missing recommended field [EventUid]" | ||
"(1) Warning: Missing recommended field [SrcDomain]" | ||
"(1) Warning: Missing recommended field [SrcHostname]" | ||
"(2) Info: Missing optional alias [DomainCategory] aliasing non-existent column [UrlCategory]" | ||
"(2) Info: Missing optional alias [Duration] aliasing non-existent column [DnsNetworkDuration]" | ||
"(2) Info: Missing optional alias [Process] aliasing non-existent column [SrcProcessName]" | ||
"(2) Info: Missing optional alias [SessionId] aliasing non-existent column [DnsSessionId]" | ||
"(2) Info: Missing optional alias [User] aliasing non-existent column [SrcUsername]" | ||
"(2) Info: Missing optional field [AdditionalFields]" | ||
"(2) Info: Missing optional field [DnsFlagsCheckingDisabled]" | ||
"(2) Info: Missing optional field [DnsFlagsRecursionAvailable]" | ||
"(2) Info: Missing optional field [DnsFlagsTruncated]" | ||
"(2) Info: Missing optional field [DnsFlagsZ]" | ||
"(2) Info: Missing optional field [DnsNetworkDuration]" | ||
"(2) Info: Missing optional field [DnsQueryClass]" | ||
"(2) Info: Missing optional field [DnsResponseIpCity]" | ||
"(2) Info: Missing optional field [DnsResponseIpCountry]" | ||
"(2) Info: Missing optional field [DnsResponseIpLatitude]" | ||
"(2) Info: Missing optional field [DnsResponseIpLongitude]" | ||
"(2) Info: Missing optional field [DnsResponseIpRegion]" | ||
"(2) Info: Missing optional field [DnsSessionId]" | ||
"(2) Info: Missing optional field [DstDescription]" | ||
"(2) Info: Missing optional field [DstDeviceType]" | ||
"(2) Info: Missing optional field [DstDomain]" | ||
"(2) Info: Missing optional field [DstDvcId]" | ||
"(2) Info: Missing optional field [DstDvcScopeId]" | ||
"(2) Info: Missing optional field [DstDvcScope]" | ||
"(2) Info: Missing optional field [DstFQDN]" | ||
"(2) Info: Missing optional field [DstGeoCity]" | ||
"(2) Info: Missing optional field [DstGeoCountry]" | ||
"(2) Info: Missing optional field [DstGeoLatitude]" | ||
"(2) Info: Missing optional field [DstGeoLongitude]" | ||
"(2) Info: Missing optional field [DstGeoRegion]" | ||
"(2) Info: Missing optional field [DstHostname]" | ||
"(2) Info: Missing optional field [DstIpAddr]" | ||
"(2) Info: Missing optional field [DstOriginalRiskLevel]" | ||
"(2) Info: Missing optional field [DstPortNumber]" | ||
"(2) Info: Missing optional field [DstRiskLevel]" | ||
"(2) Info: Missing optional field [DvcAction]" | ||
"(2) Info: Missing optional field [DvcDescription]" | ||
"(2) Info: Missing optional field [DvcFQDN]" | ||
"(2) Info: Missing optional field [DvcId]" | ||
"(2) Info: Missing optional field [DvcInterface]" | ||
"(2) Info: Missing optional field [DvcMacAddr]" | ||
"(2) Info: Missing optional field [DvcOriginalAction]" | ||
"(2) Info: Missing optional field [DvcOsVersion]" | ||
"(2) Info: Missing optional field [DvcOs]" | ||
"(2) Info: Missing optional field [DvcScopeId]" | ||
"(2) Info: Missing optional field [DvcScope]" | ||
"(2) Info: Missing optional field [DvcZone]" | ||
"(2) Info: Missing optional field [EventMessage]" | ||
"(2) Info: Missing optional field [EventOriginalSeverity]" | ||
"(2) Info: Missing optional field [EventOriginalSubType]" | ||
"(2) Info: Missing optional field [EventOwner]" | ||
"(2) Info: Missing optional field [EventProductVersion]" | ||
"(2) Info: Missing optional field [EventReportUrl]" | ||
"(2) Info: Missing optional field [EventSeverity]" | ||
"(2) Info: Missing optional field [NetworkProtocolVersion]" | ||
"(2) Info: Missing optional field [RuleName]" | ||
"(2) Info: Missing optional field [RuleNumber]" | ||
"(2) Info: Missing optional field [Rule]" | ||
"(2) Info: Missing optional field [SrcDescription]" | ||
"(2) Info: Missing optional field [SrcDeviceType]" | ||
"(2) Info: Missing optional field [SrcDvcId]" | ||
"(2) Info: Missing optional field [SrcDvcScopeId]" | ||
"(2) Info: Missing optional field [SrcDvcScope]" | ||
"(2) Info: Missing optional field [SrcFQDN]" | ||
"(2) Info: Missing optional field [SrcGeoCity]" | ||
"(2) Info: Missing optional field [SrcGeoCountry]" | ||
"(2) Info: Missing optional field [SrcGeoLatitude]" | ||
"(2) Info: Missing optional field [SrcGeoLongitude]" | ||
"(2) Info: Missing optional field [SrcGeoRegion]" | ||
"(2) Info: Missing optional field [SrcOriginalRiskLevel]" | ||
"(2) Info: Missing optional field [SrcOriginalUserType]" | ||
"(2) Info: Missing optional field [SrcProcessGuid]" | ||
"(2) Info: Missing optional field [SrcProcessId]" | ||
"(2) Info: Missing optional field [SrcProcessName]" | ||
"(2) Info: Missing optional field [SrcRiskLevel]" | ||
"(2) Info: Missing optional field [SrcUserAWSId]" | ||
"(2) Info: Missing optional field [SrcUserAadId]" | ||
"(2) Info: Missing optional field [SrcUserId]" | ||
"(2) Info: Missing optional field [SrcUserOktaId]" | ||
"(2) Info: Missing optional field [SrcUserScopeId]" | ||
"(2) Info: Missing optional field [SrcUserScope]" | ||
"(2) Info: Missing optional field [SrcUserSessionId]" | ||
"(2) Info: Missing optional field [SrcUserSid]" | ||
"(2) Info: Missing optional field [SrcUserType]" | ||
"(2) Info: Missing optional field [SrcUserUid]" | ||
"(2) Info: Missing optional field [SrcUsername]" | ||
"(2) Info: Missing optional field [TenantId]" | ||
"(2) Info: Missing optional field [ThreatCategory]" | ||
"(2) Info: Missing optional field [ThreatConfidence]" | ||
"(2) Info: Missing optional field [ThreatField]" | ||
"(2) Info: Missing optional field [ThreatFirstReportedTime]" | ||
"(2) Info: Missing optional field [ThreatId]" | ||
"(2) Info: Missing optional field [ThreatIpAddr]" | ||
"(2) Info: Missing optional field [ThreatIsActive]" | ||
"(2) Info: Missing optional field [ThreatLastReportedTime]" | ||
"(2) Info: Missing optional field [ThreatName]" | ||
"(2) Info: Missing optional field [ThreatOriginalConfidence]" | ||
"(2) Info: Missing optional field [ThreatOriginalRiskLevel]" | ||
"(2) Info: Missing optional field [ThreatRiskLevel]" | ||
"(2) Info: Missing optional field [UrlCategory]" | ||
"(2) Info: Missing recommended alias [Hostname] aliasing non-existent column [SrcHostname]" | ||
"(2) Info: extra unnormalized column [Category]" | ||
"(2) Info: extra unnormalized column [EventReceivedTime_t]" | ||
"(2) Info: extra unnormalized column [Level]" | ||
"(2) Info: extra unnormalized column [ProviderGuid_g]" | ||
"(2) Info: extra unnormalized column [QueryTypeName]" | ||
"(2) Info: extra unnormalized column [QueryType]" | ||
"(2) Info: extra unnormalized column [Query]" | ||
"(2) Info: extra unnormalized column [ResponseCodeName]" | ||
"(2) Info: extra unnormalized column [ResponseCode]" | ||
"(2) Info: extra unnormalized column [_ResourceId]" | ||
"(2) Info: extra unnormalized column [eventtype]" |
File renamed without changes.
Oops, something went wrong.