-
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.
Fixed the KqlValidation error by adding YAML files for custome parser.
- Loading branch information
Jayesh Prajapati
authored and
Jayesh Prajapati
committed
Sep 4, 2023
1 parent
191e4d4
commit cb5783b
Showing
6 changed files
with
210 additions
and
206 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
"Type": "string" | ||
}, | ||
{ | ||
"Name": "topics_s", | ||
"Name": "companies_s", | ||
"Type": "string" | ||
}, | ||
{ | ||
|
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
100 changes: 0 additions & 100 deletions
100
Solutions/Dataminr Pulse/Parsers/DataminrPulseAlerts.txt
This file was deleted.
Oops, something went wrong.
102 changes: 102 additions & 0 deletions
102
Solutions/Dataminr Pulse/Parsers/DataminrPulseAlerts.yaml
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,102 @@ | ||
id: a4fddd3e-9993-4c86-b5e8-8e36d8ce1197 | ||
Function: | ||
Title: Parser for DataminrPulseAlerts | ||
Version: '1.0.0' | ||
LastUpdated: '2023-09-01' | ||
Category: Microsoft Sentinel Parser | ||
FunctionName: DataminrPulseAlerts | ||
FunctionAlias: DataminrPulseAlerts | ||
FunctionQuery: | | ||
let DataminrPulseAlerts_view = view() { | ||
DataminrPulse_Alerts_CL | ||
| extend category = parse_json(categories_s) | ||
| mv-apply category on (summarize CategoryNames = make_list(category.name)) | ||
| extend company = parse_json(companies_s) | ||
| mv-apply company on (summarize CompanyNames = make_list(company.name)) | ||
| extend watchlist = parse_json(watchlistsMatchedByType_s) | ||
| mv-apply watchlist on (summarize WatchlistNames = make_list(watchlist.name)) | ||
| summarize any(*) by index_s | ||
| extend | ||
EventVendor="Dataminr", | ||
EventProduct="Pulse", | ||
AlertId = column_ifexists('index_s', ''), | ||
AlertType = column_ifexists('any_alertType_name_s', ''), | ||
AvailableRelatedAlerts = column_ifexists('any_availableRelatedAlerts_d', ''), | ||
Caption = column_ifexists('any_headline_s', ''), | ||
Company = column_ifexists('any_companies_s', ''), | ||
CompanyNames = tostring(column_ifexists('any_CompanyNames', '')), | ||
Category = column_ifexists('any_categories_s', ''), | ||
CategoryNames = tostring(column_ifexists('any_CategoryNames', '')), | ||
Latitude = column_ifexists('any_location_latitude_d', ''), | ||
Longitude = column_ifexists('any_location_longitude_d', ''), | ||
EventLocationName = column_ifexists('any_location_name_s', ''), | ||
EventLocationPlace = column_ifexists('any_location_places_s', ''), | ||
EventLocationProbability = column_ifexists('any_location_probability_d', ''), | ||
EventLocationRadius = column_ifexists('any_location_radius_d', ''), | ||
EventSource = column_ifexists('any_headlineData_via_s', ''), | ||
EventTime = column_ifexists('any_timestamp_d', ''), | ||
EventVolume = column_ifexists('any_volume_d', ''), | ||
EmbeddedLabels = column_ifexists('any__embedded_labels_s', ''), | ||
PostLanguagae = column_ifexists('any_odsStatus_languages_s', ''), | ||
PostLink = column_ifexists('any_odsStatus_link_s', ''), | ||
PostMedia = column_ifexists('any_odsStatus_media_s', ''), | ||
PostText = column_ifexists('any_odsStatus_text_s', ''), | ||
PostTimestamp = column_ifexists('any_odsStatus_timestamp_d', ''), | ||
PostTranslatedText = column_ifexists('any_odsStatus_translatedText_s', ''), | ||
PublisherCategoryName = column_ifexists('any_publisherCategory_name_s', ''), | ||
RelatedTerms = column_ifexists('any_referenceTerms_s', ''), | ||
Sectors = column_ifexists('any_sectors_s', ''), | ||
SourceChannels = column_ifexists('any_odsStatus_source_channels_s', ''), | ||
SourceDisplayName = column_ifexists('any_odsStatus_source_display_name_s', ''), | ||
SourceEntityName = column_ifexists('any_odsStatus_source_entity_name_s', ''), | ||
SourceLink = column_ifexists('any_odsStatus_source_link_s', ''), | ||
SourceVerified = column_ifexists('any_odsStatus_source_verified_s', ''), | ||
SubCaptionBulletsContent = column_ifexists('any_dataMap_bullets_content_s', ''), | ||
SubCaptionBulletsMedia = column_ifexists('any_dataMap_bullets_media_s', ''), | ||
SubCaptionBulletsSource = column_ifexists('any_dataMap_bullets_source_s', ''), | ||
WatchlistsMatchedByType = column_ifexists('any_watchlistsMatchedByType_s', ''), | ||
WatchlistNames = tostring(column_ifexists('any_WatchlistNames', '')) | ||
| project-rename TimeGenerated = any_TimeGenerated | ||
| project | ||
TimeGenerated, | ||
EventVendor, | ||
EventProduct, | ||
AlertId, | ||
AlertType, | ||
AvailableRelatedAlerts, | ||
Caption, | ||
Company, | ||
CompanyNames, | ||
Category, | ||
CategoryNames, | ||
Latitude, | ||
Longitude, | ||
EventLocationName, | ||
EventLocationPlace, | ||
EventLocationProbability, | ||
EventLocationRadius, | ||
EventSource, | ||
EventTime, | ||
EventVolume, | ||
EmbeddedLabels, | ||
PostLanguagae, | ||
PostLink, | ||
PostMedia, | ||
PostText, | ||
PostTimestamp, | ||
PostTranslatedText, | ||
PublisherCategoryName, | ||
RelatedTerms, | ||
Sectors, | ||
SourceChannels, | ||
SourceDisplayName, | ||
SourceEntityName, | ||
SourceLink, | ||
SourceVerified, | ||
SubCaptionBulletsContent, | ||
SubCaptionBulletsMedia, | ||
SubCaptionBulletsSource, | ||
WatchlistsMatchedByType, | ||
WatchlistNames | ||
}; | ||
DataminrPulseAlerts_view |
103 changes: 0 additions & 103 deletions
103
Solutions/Dataminr Pulse/Parsers/DataminrPulseCyberAlerts.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.