Commit graph

362 commits

Author SHA1 Message Date
Ying Mao
2dcbcb45d1
[Response Ops][Docs] Alerting circuit breaker docs (#131459)
* Circuit breaker docs

* Apply suggestions from code review

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2022-05-04 15:04:25 -04:00
Anton Dosov
9aeb1fb446
Update search session config docs (#131411) 2022-05-04 11:58:01 +02:00
Lisa Cawley
ce92e4cea2
[DOCS] Edits xpack.actions.email.domain_allowlist (#130993) 2022-04-28 08:02:42 -07:00
Colleen McGinnis
88bad4ed00
remove source config settings (#130931) 2022-04-27 09:41:51 -05:00
Patrick Mueller
6ad418b275
[ResponseOps][actions] add config for allow-listing email address domains (#129001)
resolves https://github.com/elastic/kibana/issues/126944

Adds a new configuration setting for the actions plugin,
xpack.actions.email.domain_allowlist, which is an array of domain name
strings which are allowed to be sent emails by the email connector.
2022-04-26 10:05:16 -04:00
Ersin Erdal
f44e198784
Add circuit breaker for max number of actions by connector type (#128319)
* connectorTypeOverrides key in kibana.yml can create a connector type specific action config.

* Update docs and docker allowed keys
2022-04-26 03:35:34 +02:00
Ersin Erdal
f962ff282f
Rename the term "execution" in config to "run" (#130172)
* Rename the term "execution" in config to "run"

* Rename the term "execution" in config to "run"

* Rename the overlooked terms

* [DOCS] Fix example indentation

* Update docs/user/alerting/troubleshooting/alerting-common-issues.asciidoc

Co-authored-by: Lisa Cawley <lcawley@elastic.co>

Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-04-18 12:44:50 -04:00
Sandra G
bc6a6e444f
[Stack Monitoring] add monitoring.ui.elasticsearch.serviceAccountToken to docs (#128488)
* monitoring.ui.elasticsearch.serviceAccountToken to docs

* update description

* update

* update to make clearer

* Update docs/settings/monitoring-settings.asciidoc

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

* Update docs/settings/monitoring-settings.asciidoc

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2022-03-29 09:04:56 -04:00
Ersin Erdal
c9aad65b67
[Alerting] Remove defaultRuleTaskTimeout and set ruleType specific timeout from kibana.yml (#128294)
Read ruleTaskTimeout from kibana.yml
2022-03-28 08:36:30 +02:00
Patrick Mueller
b028cf97ed
[ResponseOps][task manager] log event loop delay for tasks when over configured limit (#126300)
resolves https://github.com/elastic/kibana/issues/124366

Adds new task manager configuration keys.

- `xpack.task_manager.event_loop_delay.monitor` - whether to monitor
  event loop delay or not; added in case this specific monitoring
  causes other issues and we'd want to disable it.  We don't know
  of any cases where we'd need this today

- `xpack.task_manager.event_loop_delay.warn_threshold` - the number
  of milliseconds of event loop delay before logging a warning

This code uses the `perf_hooks.monitorEventLoopDelay()` API[1] to collect
the event loop delay while a task is running.

[1] https://nodejs.org/api/perf_hooks.html#perf_hooksmonitoreventloopdelayoptions

When a significant event loop delay is encountered, it's very likely
that other tasks running at the same time will be affected, and so
will also end up having a long event loop delay value, and warnings
will be logged on those.  Over time, though, tasks which have consistently
long event loop delays will outnumber those unfortunate peer tasks, and
be obvious from the volume in the logs.

To make it a bit easier to find these when viewing Kibana logs in Discover,
tags are added to the logged messages to make it easier to find them.  One
tag is `event-loop-blocked`, second is the task type, and the third is a string 
consisting of the task type and task id.
2022-03-23 10:28:43 -04:00
Ying Mao
0b1425b974
[Alerting] Warn by default when rule schedule interval is set below the minimum configured. (#127498)
* Changing structure of minimumScheduleInterval config

* Updating rules client logic to follow enforce flag

* Updating UI to use enforce value

* Updating config key in functional tests

* Fixes

* Fixes

* Updating help text

* Wording suggestsion from PR review

* Log warning instead of throwing an error if rule has default interval less than minimum

* Updating default interval to be minimum if minimum is greater than hardcoded default

* Fixing checks

* Fixing tests

* Fixing tests

* Fixing config

* Fixing checks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-21 18:55:30 -04:00
Ersin Erdal
45c4e7dac1
[Alerting] Limit the executable actions per Rule execution (#128079) 2022-03-18 21:19:26 +01:00
Brian Seeders
242c5fd63f
Revert "[Alerting] Limit the executable actions per Rule execution (#126902)"
This reverts commit 31099bc68f.
2022-03-18 10:20:18 -04:00
Ersin Erdal
31099bc68f
[Alerting] Limit the executable actions per Rule execution (#126902)
* [Alerting] Circuit breaker. Limit the executable actions per Rule execution.
2022-03-18 13:51:24 +01:00
Ahmad Bamieh
3cc429d2cb
[i18n] a few docs updates (#127964) 2022-03-17 18:18:49 +02:00
Josh Dover
e5c4bef033
[Fleet] Update preconfiguration is_managed typo (#127909) 2022-03-17 10:45:16 +01:00
msimpson-xm
5641dcc12c
[alerting]: adds a connector for xMatters (#122357)
* Begin work on building out the backend of an xMatters connector

* Begin work on building out the frontend of an xMatters connector

* Continue attempting to get connector to register properly

* Begin working on the UI for the Edit Connector Test page

* Start working on writing tests for backend component of the xMatters connector

* Remove unneeded test due to not having any fancy escaping

* Write tests for the frontend component of the xMatters connector

* Add documentation for new xMatters connector

* Begin working on functional tests

* Continue work on frontend for xMatters conenctor

* Continue work on backend for xMatters conenctor

* Continue work on the functional tests for the xMatters connector

* Update based on xMatters string reviews

* Remove hidden parameters from ui

* Continue working to get tests running successfully

* Fix my code after rebasing onto latest main

* Fix the xMatters server for the simluator

* Check if listening before listening to the xmatters server in simulator

* Continue work on improving the xMatters connector

* Update strings based on the xMatters team string review

* Remove the headers as an option for the xMatters connector

* Fix alignment of the xmatters logo on the connectors page

* Allow alertId and alertActionGroupName to be null in the xMatters connector for test requests

* Fix the functional tests for the xMatters connector

* Rename alertName to ruleName and remove headers from xMatters connector

* Continue removing headers and renaming alertName to ruleName

* Update the tests so all are passing

* Some clean up for the xMatters connector

* Update the doc images based on changes for the xMatters connector

* Change alert id to use rule id and alert id and be labeled as signal id in the xMatters connector

* Fix failing tests for xMatters connector

* Start addressing comments and failing builds

* Combine if statement

* Update test strings after updating error strings

* Begin making updates after discussions and reviews

* Update failing tests

* Few adjustments after my self review of the xMatters connector

* Fix one failing test

* Fix a few small bugs in the xMatters connector

* Address a few small bugs in the xMatters connector

* Address latest comments and fix a few tests on the xMatters connector

* Adjust naming of secretsUrl and configUrl

* Work on fixing tests for xMatters connector

* Begin updating the xMatters documentation

* Update based on build errors

* Update documentation typo

* Add validation tests for connectors created using the API

* Fix the failing functional tests

* Update docs after review from xMatters team

* Update accidentally duplicated translate id

* Fix small bugs and update based on xMatters team string reviews

* Fix failing tests due to string changes

* [DOCS] Fixes doc build errors

* Update based on comments and feedback

* Update docs based on feedback

* Fix failing functional tests

* Update based on the feedback

* Fix failures in the functional tests

* Remove accidentally added file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2022-03-16 10:22:27 -04:00
Sandra G
c4ccc00227
[Stack Monitoring] add back monitoring.ui.metricbeat.index and deprecate (#127462)
* add back monitoring.ui.metricbeat.index and deprecate

* add back to test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-15 10:43:30 -04:00
Kaarina Tungseth
27b57357cc
[DOCS] Adds missing monitoring.cluster_alerts.email_notifications.enabled setting (#127323)
* [DOCS] Adds missing  setting

* Removes deprecation message for unsupported version
2022-03-09 15:03:02 -06:00
Kaarina Tungseth
0bc7a2ee35
[DOCS] Adds missing monitoring.cluster_alerts.email_notifications.email_address monitoring setting (#126826)
* [DOCS] Adds missing deprecated monitoring settings

* Review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-09 12:14:51 -06:00
gchaps
2fc7ad44a8
[DOCS] Add settings for Enterprise Search (#126711)
* [DOCS] Add settings for Enterprise Search

* Update docs/settings/enterprise-search-settings.asciidoc

Co-authored-by: Rich Kuzsma <62522248+richkuz@users.noreply.github.com>

Co-authored-by: Rich Kuzsma <62522248+richkuz@users.noreply.github.com>
2022-03-02 12:58:15 -08:00
Ying Mao
f51131c42c
[Alerting] Adding a configurable minimal rule interval for newly created rules (#125396)
* Removing minimumScheduleInterval on rule type registration

* Adding minimumScheduleInterval to config and enforcing in rule type registry

* Validating interval on create and update

* Fixing types and tests

* Fixing types and tests

* Fixing types and tests

* Passing config to client and using to validate on rule creation

* Fixing small bug and tests

* Fixing tests

* Fixing tests

* Fixing tests

* Updating interval in docs

* Updating interval in docs

* Updating UI copy

* Fixing types and tests

* Fixing i18n

* Fixing tests from bad merge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-28 17:48:08 -05:00
Kaarina Tungseth
e015ca97f4 [DOCS] Reformats the Monitoring settings tables into definition lists (#126489) 2022-02-28 13:33:29 -06:00
Jean-Louis Leysens
24c5f2518e
[Reporting] Document load delay unused (#125629)
* added note that loadDelay is unused

* updated note to match loadDelay

* added deprecated badge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-22 09:48:00 +01:00
Tim Sullivan
1095208ace
[Reporting/Docs] Add clarity to reporting concepts (#125175)
* discourage setting enabled:false

* mark xpack.reporting.kibanaServer as experimental

* move kibanaServer section down

* add kibana privileges with reporting options screenshot

* rephrase why reporting.roles is depreccated

* screenshot for how to define a custom role the grants reporting privileges

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/settings/reporting-settings.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/settings/reporting-settings.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2022-02-11 09:40:41 -07:00
Gil Raphaelli
35f51bb96b
sync docs with new defaults for apm searchAggregatedTransactions setting (#125165) 2022-02-10 08:57:33 -05:00
Kaarina Tungseth
855c0148c7
[DOCS] Reformats the Security settings tables into definition lists (#123965)
* [DOCS] Reformats the Security settings tables into definition lists

* Review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-09 14:52:39 -06:00
Dave Snider
96efcb2f30
String replace from "experimental" to "technical preview" (#124311)
* change experimental mentions to technical preview

* fix table

* revert yml manifest change

* fix jest tests

* fix translation

* feedback and tests

* feedback and typos. ty

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-02-04 12:15:27 -05:00
Jean-Louis Leysens
54895a2ef8
[Docs] Add missing reporting config (#123917)
* added docs for `xpack.reporting.csv.escapeFormulaValues` config and `xpack.reporting.csv.useByteOrderMarkEncoding`, and some minor auto-formatting

* some more auto-formatting changes

* addded some documentation to CSV escape function

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-31 15:24:44 +01:00
Kevin Lacabane
24f0425284
[Stack monitoring] remove support for monitoring.cluster_alerts.allowedSpaces (#123229)
* remove allowed space setting

* set allowedSpaces as unused setting

* mock unused function in deprecation tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-25 15:29:18 +01:00
Chris Cowan
d55fd9bb11
[Metrics UI] Optimizations for Inventory Threshold Alerts (#122460)
* [Metrics UI] Optimizations for Inventory Threshold Alerts

* reverting changes to the snapshot api
2022-01-24 16:35:22 -07:00
Chris Cowan
8e6ec25a51
[Metrics UI] Increase composite size to 10K for Metric Threshold Rule and optimize processing (#121904)
* [Metrics UI] Increase composite size for Metric Threshold Rule to 10K

* Adding performance optimizations

* Fixing metrics_alerting integration test

* fixing tests

* Fixing integration test and config mock

* Removing the setTimeout code to simplify to a for/of

* Adding new setting to docs

* Adding metric_threshold identifier to the config setting
2022-01-18 14:36:03 -07:00
Mike Côté
f3477143aa
Fix docs for defaultRuleTaskTimeout where the default is inaccurate (#123171) 2022-01-17 12:11:57 -05:00
Tim Sullivan
4ba843c267
[Screenshotting] Darwin downloads Chromium at startup, add ARM support for Darwin (#122057)
* update puppeteer

* [Reporting] Use downloadable chromium build for the Mac OS headless browser

* fix test

* [Screenshotting] add new paths for mac browsers

* add bundled field to chromium download paths interface

* update build scripts

* polish

* log when skip

* stop downloading all packages every time

* pass the PackageInfo object to the install function

* remove eslint-disable-line

* fix call to getBinaryPath

* polish

* simplify plugin.ts

* fix unit test

* fix lint

* tweak gulp task to explicitly download chromium for all platforms

* ignore chromium when copying x-pack source

* simplify

* update documentation with steps to manually download chromium

* Apply Documentation suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* update docs to cut redundancy

* clean up link to manual browser download

* wording choice adjustment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2022-01-05 21:44:29 -07:00
gchaps
484a0455c1
[DOCS] Updates fleet settings doc (#122303) 2022-01-05 10:30:54 -08:00
Kaarina Tungseth
7e8b5f9eeb
Remove CentOS (#121128) 2021-12-14 15:06:05 -06:00
gchaps
232d893c6e
[DOCS] Reformats Task Manager settings tables into definition lists (#120858) 2021-12-09 08:00:18 -08:00
gchaps
704c205ab3
[DOCS] Reformats the telemetry settings tables into defintion lists (#120855) 2021-12-09 08:00:01 -08:00
Nathan L Smith
27bbd3d790
Rename auto create data view APM setting (#120689)
from `xpack.apm.autocreateApmIndexPattern` to `xpack.apm.autoCreateApmDataView`.

Note the capitalization change. It now is `autoCreate` instead of `autocreate`.

Fixes #120095.
2021-12-07 21:33:23 -06:00
Kyle Pollich
27ef4b4a6d
[Fleet] Handle ID's for preconfigured package policies (#120664)
* Handle ID's for preconfigured package policies

- For Fleet's default policies, add a hard-coded ID to the generated
  package policies
- Require an ID value for all preconfigured package policies

Resolves #120612

* Add required package_policies.id field to docs

* Specify that id is unique in docs

* Tweak docs

* Fall back to UUID value if no preconfigured ID

* Fix default fleet server policy id
2021-12-07 14:03:25 -07:00
Kevin Lacabane
6b8037ba6a
update monitoring.allowedSpaces documentation (#120362)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 12:04:07 +01:00
gchaps
514d40c7a1
[DOCS] Reformats settings in drilldown doc (#120299)
* [DOCS] Reformats settings in drilldown doc

* Update docs/settings/url-drilldown-settings.asciidoc

* Update docs/settings/url-drilldown-settings.asciidoc

* Update docs/settings/url-drilldown-settings.asciidoc

* Update docs/settings/url-drilldown-settings.asciidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-06 11:52:40 -08:00
Peter Dyson
3ede8c4a8b
[DOCS] document missing enabledActionTypes value for Microsoft Teams action (#113211)
* [DOCS] document missing value for Microsoft Teams action

[DOCS] document missing value for Microsoft Teams action for xpack.actions.enabledActionTypes config.
eg: xpack.actions.enabledActionTypes: ['.email','.teams']

* include the full list of possible values

* Update docs/settings/alert-action-settings.asciidoc

LGTM

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* commit using @elastic.co

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-12-03 15:53:25 +10:00
ymao1
3de6de98a7
[Alerting][Docs] Review usages of Alerting vs alerting (#119314)
* Alerting vs alerting

* PR feedback

* Reverting unnecessary changes

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* PR feedback

* PR feedback

* Removing {kib}

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Removing {kib}

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-30 19:24:45 -05:00
Brandon Morelli
c32a2f9cbd
[APM] docs: Update setup page and remove index pat docs (#120025) 2021-11-30 14:47:14 -08:00
Christiane (Tina) Heiligers
75fcfe1c80
Docs/kibana logging links (#119680)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-29 11:17:15 -05:00
Christiane (Tina) Heiligers
9189066b0c
[docs-logging]: move developer/architecture docs to user docs (#119125)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-24 16:42:28 -05:00
ymao1
905ac6cb99
[Alerting] Initial implementation of alerting task cancel() (#114289)
* Added cancel() to alerting task runner and writing event log document

* Updating rule saved object with timeout execution status

* Skip scheduling actions and logging event log for alerts if rule execution is cancelled

* Adding config for disabling skipping actions

* Fixing types

* Adding flag for rule types to opt out of skipping acitons

* Using task runner uuid to differentiate between task instances

* Adding functional test

* Default to timestamp when startedAt is not available

* Reverting previous change and updating task pool filter instead

* Fixing functional test

* Adding debug logging

* Fixing unit tests

* Fixing unit tests

* Adding rule name to event log doc and rule type timeout to log messages

* Simplifying register logic and adding check to see if already cancelled

* Updating task uuid based on PR comments

* Removing observable

* Fixing functional test

* Adding to docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-15 20:55:55 -05:00
Thomas Watson
a861170c47
Move audit logs to a dedicated logs directory (#116562)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-11-10 06:12:53 +01:00
Thomas Watson
8a39a113a0
Finalize removal of legacy audit logger (#116282) 2021-10-30 22:33:37 +01:00