Skip to content

Commit

Permalink
Enable alerting and actions plugin by default (elastic#51254)
Browse files Browse the repository at this point in the history
* Enable alerting and actions plugin by default

* Fix test failure

* Fix features test
  • Loading branch information
mikecote authored Nov 28, 2019
1 parent af23f30 commit 1367814
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
7 changes: 3 additions & 4 deletions x-pack/legacy/plugins/actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ action types.

## Usage

1. Enable the actions plugin in the `kibana.yml` by setting `xpack.actions.enabled: true`.
2. Develop and register an action type (see action types -> example).
3. Create an action by using the RESTful API (see actions -> create action).
4. Use alerts to execute actions or execute manually (see firing actions).
1. Develop and register an action type (see action types -> example).
2. Create an action by using the RESTful API (see actions -> create action).
3. Use alerts to execute actions or execute manually (see firing actions).

## Kibana Actions Configuration
Implemented under the [Actions Config](./server/actions_config.ts).
Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function actions(kibana: any) {
config(Joi: Root) {
return Joi.object()
.keys({
enabled: Joi.boolean().default(false),
enabled: Joi.boolean().default(true),
whitelistedHosts: Joi.array()
.items(
Joi.string()
Expand Down
5 changes: 2 additions & 3 deletions x-pack/legacy/plugins/alerting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ A Kibana alert detects a condition and executes one or more actions when that co

## Usage

1. Enable the alerting plugin in the `kibana.yml` by setting `xpack.alerting.enabled: true`.
2. Develop and register an alert type (see alert types -> example).
3. Create an alert using the RESTful API (see alerts -> create).
1. Develop and register an alert type (see alert types -> example).
2. Create an alert using the RESTful API (see alerts -> create).

## Limitations

Expand Down
2 changes: 1 addition & 1 deletion x-pack/legacy/plugins/alerting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function alerting(kibana: any) {
config(Joi: Root) {
return Joi.object()
.keys({
enabled: Joi.boolean().default(false),
enabled: Joi.boolean().default(true),
})
.default();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ export default function({ getService }: FtrProviderContext) {
'maps',
'uptime',
'siem',
'alerting',
'actions',
].sort()
);
});
Expand Down
2 changes: 2 additions & 0 deletions x-pack/test/api_integration/apis/security/privileges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default function({ getService }: FtrProviderContext) {
uptime: ['all', 'read'],
apm: ['all', 'read'],
siem: ['all', 'read'],
actions: ['all', 'read'],
alerting: ['all', 'read'],
},
global: ['all', 'read'],
space: ['all', 'read'],
Expand Down

0 comments on commit 1367814

Please sign in to comment.