Skip to content

Commit

Permalink
[Security Solution] Change default index pattern (elastic#70797)
Browse files Browse the repository at this point in the history
* [Security Solution] Change default index pattern

Add `logs-*` to the Security Solution default index pattern. This should
allow the app to recognize events from the Elastic Endpoint.
  • Loading branch information
Robert Austin committed Jul 7, 2020
1 parent ee9bb7c commit 945de5a
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 3 deletions.
1 change: 1 addition & 0 deletions x-pack/plugins/security_solution/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const DEFAULT_INDEX_PATTERN = [
'filebeat-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
];

/** This Kibana Advanced Setting enables the `Security news` feed widget */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ describe('useFetchIndexPatterns', () => {
'filebeat-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
name: 'event.end',
searchable: true,
Expand All @@ -370,6 +371,7 @@ describe('useFetchIndexPatterns', () => {
'filebeat-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
indicesExists: true,
indexPatterns: {
Expand Down Expand Up @@ -415,7 +417,8 @@ describe('useFetchIndexPatterns', () => {
{ name: 'source.port', searchable: true, type: 'long', aggregatable: true },
{ name: 'event.end', searchable: true, type: 'date', aggregatable: true },
],
title: 'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*',
title:
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*,logs-*',
},
},
result.current[1],
Expand Down Expand Up @@ -449,6 +452,7 @@ describe('useFetchIndexPatterns', () => {
'filebeat-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
indicesExists: false,
isLoading: false,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ describe('Index Fields & Browser Fields', () => {
errorMessage: null,
indexPattern: {
fields: [],
title: 'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*',
title:
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*,logs-*',
},
indicesExist: true,
loading: true,
Expand Down Expand Up @@ -57,7 +58,8 @@ describe('Index Fields & Browser Fields', () => {
browserFields: mockBrowserFields,
indexPattern: {
fields: mockIndexFields,
title: 'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*',
title:
'apm-*-transaction*,auditbeat-*,endgame-*,filebeat-*,packetbeat-*,winlogbeat-*,logs-*',
},
loading: false,
errorMessage: null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
'filebeat-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
inspect: false,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
'filebeat-*',
'packetbeat-*',
'winlogbeat-*',
'logs-*',
],
inspect: false,
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 945de5a

Please sign in to comment.