Skip to content

Commit

Permalink
remove uneeded indices, remove preventNotify option
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog committed Jul 2, 2020
1 parent 3305b22 commit 3de9ca3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ export const factory = (): PolicyConfig => {
},
advanced: {
elasticsearch: {
indices: {
control: 'control-index',
event: 'event-index',
logging: 'logging-index',
},
kernel: {
connect: true,
process: true,
Expand All @@ -49,19 +44,14 @@ export const factory = (): PolicyConfig => {
network: true,
},
malware: {
mode: ProtectionModes.detect,
mode: ProtectionModes.prevent,
},
logging: {
stdout: 'debug',
file: 'info',
},
advanced: {
elasticsearch: {
indices: {
control: 'control-index',
event: 'event-index',
logging: 'logging-index',
},
kernel: {
connect: true,
process: true,
Expand All @@ -81,11 +71,6 @@ export const factory = (): PolicyConfig => {
},
advanced: {
elasticsearch: {
indices: {
control: 'control-index',
event: 'event-index',
logging: 'logging-index',
},
kernel: {
connect: true,
process: true,
Expand Down
6 changes: 0 additions & 6 deletions x-pack/plugins/security_solution/common/endpoint/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,11 +644,6 @@ export interface UIPolicyConfig {

interface PolicyConfigAdvancedOptions {
elasticsearch: {
indices: {
control: string;
event: string;
logging: string;
};
kernel: {
connect: boolean;
process: boolean;
Expand All @@ -665,7 +660,6 @@ export interface MalwareFields {
export enum ProtectionModes {
detect = 'detect',
prevent = 'prevent',
preventNotify = 'preventNotify',
off = 'off',
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ export const MalwareProtections = React.memo(() => {
}),
protection: 'malware',
},
{
id: ProtectionModes.preventNotify,
label: i18n.translate('xpack.securitySolution.endpoint.policy.details.preventAndNotify', {
defaultMessage: 'Prevent and notify user',
}),
protection: 'malware',
},
];
}, []);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
linux: {
advanced: {
elasticsearch: {
indices: {
control: 'control-index',
event: 'event-index',
logging: 'logging-index',
},
kernel: { connect: true, process: true },
},
},
Expand All @@ -134,26 +129,16 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
mac: {
advanced: {
elasticsearch: {
indices: {
control: 'control-index',
event: 'event-index',
logging: 'logging-index',
},
kernel: { connect: true, process: true },
},
},
events: { file: false, network: true, process: true },
logging: { file: 'info', stdout: 'debug' },
malware: { mode: 'detect' },
malware: { mode: 'prevent' },
},
windows: {
advanced: {
elasticsearch: {
indices: {
control: 'control-index',
event: 'event-index',
logging: 'logging-index',
},
kernel: { connect: true, process: true },
},
},
Expand Down

0 comments on commit 3de9ca3

Please sign in to comment.