Skip to content

Commit

Permalink
added new log types (opensearch-project#439)
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <[email protected]>
  • Loading branch information
amsiglan authored Feb 22, 2023
1 parent b2994a1 commit 22330db
Show file tree
Hide file tree
Showing 6 changed files with 253 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,26 @@ exports[`<DetectorRulesView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -560,6 +580,26 @@ exports[`<DetectorRulesView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -749,6 +789,26 @@ exports[`<DetectorRulesView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -860,6 +920,26 @@ exports[`<DetectorRulesView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2928,6 +2928,26 @@ exports[`<DetectorDetails /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -3045,6 +3065,26 @@ exports[`<DetectorDetails /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -3234,6 +3274,26 @@ exports[`<DetectorDetails /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -3345,6 +3405,26 @@ exports[`<DetectorDetails /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1678,6 +1678,26 @@ exports[`<DetectorDetailsView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -1795,6 +1815,26 @@ exports[`<DetectorDetailsView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -1984,6 +2024,26 @@ exports[`<DetectorDetailsView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
},
Expand Down Expand Up @@ -2095,6 +2155,26 @@ exports[`<DetectorDetailsView /> spec renders the component 1`] = `
"name": "S3",
"value": "s3",
},
Object {
"name": "Google Workspace",
"value": "gworkspace",
},
Object {
"name": "Github actions",
"value": "github",
},
Object {
"name": "Microsoft 365",
"value": "m365",
},
Object {
"name": "Okta",
"value": "okta",
},
Object {
"name": "Azure",
"value": "azure",
},
],
"type": "field_value_selection",
}
Expand Down
9 changes: 7 additions & 2 deletions public/pages/Detectors/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ export const EMPTY_DEFAULT_DETECTOR_INPUT = {
};

export const DETECTOR_TYPES = {
NETFLOW: { id: 'network', label: 'Netflow' },
NETWORK: { id: 'network', label: 'Network events' },
DNS: { id: 'dns', label: 'DNS logs' },
APACHE_ACCESS: { id: 'apache_access', label: 'Apache access logs' },
WINDOWS: { id: 'windows', label: 'Windows logs' },
AD_LDAP: { id: 'ad_ldap', label: 'AD/LDAP' },
AD_LDAP: { id: 'ad_ldap', label: 'AD/LDAP logs' },
SYSTEM: { id: 'linux', label: 'System logs' },
CLOUD_TRAIL: { id: 'cloudtrail', label: 'Cloud Trail logs' },
S3: { id: 's3', label: 'S3 access logs' },
GWORKSPACE: { id: 'gworkspace', label: 'Google Workspace logs' },
GITHUB: { id: 'github', label: 'Github actions' },
M365: { id: 'm365', label: 'Microsoft 365 logs' },
OKTA: { id: 'okta', label: 'Okta events' },
AZURE: { id: 'azure', label: 'Azure logs' },
};
5 changes: 5 additions & 0 deletions public/pages/Rules/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export const ruleTypes: { label: string; value: string }[] = [
{ label: 'Linux', value: 'linux' },
{ label: 'Cloudtrail', value: 'cloudtrail' },
{ label: 'S3', value: 's3' },
{ label: 'Google Workspace', value: 'gworkspace' },
{ label: 'Github actions', value: 'github' },
{ label: 'Microsoft 365', value: 'm365' },
{ label: 'Okta', value: 'okta' },
{ label: 'Azure', value: 'azure' },
];

export const ruleSeverity: { name: string; value: string }[] = [
Expand Down
2 changes: 1 addition & 1 deletion public/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const EMPTY_DEFAULT_DETECTOR_INPUT: DetectorInput = {

export const EMPTY_DEFAULT_DETECTOR: Detector = {
type: 'detector',
detector_type: DETECTOR_TYPES.NETFLOW.id,
detector_type: DETECTOR_TYPES.NETWORK.id,
name: '',
enabled: true,
createdBy: '',
Expand Down

0 comments on commit 22330db

Please sign in to comment.