Commit graph

362 commits

Author SHA1 Message Date
honeyn303
1ff87eb551
Gemini connector integration (#183668) 2024-06-06 11:52:35 -06:00
Tim Sullivan
56383ccdde
Use Data Stream for Reporting storage (#176022)
## Summary

Closes https://github.com/elastic/kibana/issues/161608

* [X] Depends on https://github.com/elastic/elasticsearch/pull/97765
* [x] Depends on https://github.com/elastic/elasticsearch/pull/107581
* [x] Add create a new report job and check the details of the templated
data stream.
* [x] Run Discover tests in Flaky Test Runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5999

## Release Note

Reporting internal storage has been changed from using regular indices
to a data stream configuration for a more efficient sharding strategy.
This change is not expected to have any impact to users.

## Screenshots

### Upgrade test (manual process)
Using a report generated before this change, and a report generated
after "upgrading":

![image](f92193d8-70d6-4fa5-b1b7-8f6c1a0a5e9f)
Even though the two reports are in different types storage, they are
still managed by the same policy:

![image](9bd68d99-72ed-4cf0-bef9-55e644f039b7)
Looking at the details of the policy shows how the different types of
storage are used:

![image](6c0d1f80-97cb-4990-b2a8-45deab7528bc)

### Log lines

Initial startup in clean environment
```
[2024-05-13T13:22:49.138-07:00][INFO ][plugins.reporting.store] Creating ILM policy for reporting data stream: kibana-reporting
[2024-05-13T13:22:53.337-07:00][INFO ][plugins.reporting.store] Linking ILM policy to reporting data stream: .kibana-reporting, component template: kibana-reporting@custom
```

Kibana restart with ES running continuously
```
[2024-05-13T13:24:32.733-07:00][DEBUG][plugins.reporting.store] Found ILM policy kibana-reporting; skipping creation.
[2024-05-13T13:24:32.733-07:00][INFO ][plugins.reporting.store] Linking ILM policy to reporting data stream: .kibana-reporting, component template: kibana-reporting@custom
```

### Checklist

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
~~See
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5302
(internal link)~~
2024-05-21 10:11:45 -07:00
Larry Gregory
2f463fed09
Support filtering audit log events by user (#183137)
## Summary

Adds a new `xpack.security.audit.ignore_filters.users` configuration
setting. This behaves similar to the existing
`xpack.security.audit.ignore_filters.spaces` configuration setting, in
that it will filter out audit events for any of the specified users.

Resolves #183136 

This PR also adds documentation for the existing
`xpack.security.audit.ignore_filters.spaces` setting, as it was
previously missing.

## Testing

1) Configure audit logging, ignoring one or more users of your choosing:

```yml
# kibana.yml
xpack.security.audit:
   enabled: true
   appender:
      type: rolling-file
      fileName: ./audit.log
      layout:
         type: json
   ignore_filters:
      - users: ["elastic"]
```

2) Start Kibana and ES with a `trial` license.
3) Login as an ignored user
4) Notice the user activity is not present in the audit logs.
5) Login as a non-ignored user
6) Notice the user activity is present in the audit logs.

## Release note:
Audit logs can be filtered by username via the
`xpack.security.audit.ignore_filters.users` configuration setting.
2024-05-10 13:37:19 -04:00
Steph Milovic
ad8163db82
[GenAI] Bedrock Claude 3 Support (#179304) 2024-03-27 13:24:10 -06:00
Tim Sullivan
2ff5410161
[Reporting/CSV] Deprecate Download CSV, add a config flag to enable (#178159)
Closes https://github.com/elastic/kibana/issues/164104

## Summary

**Replace "Download CSV" with "Generate CSV report" to export a CSV file
from saved search panel, deprecate "Download CSV", use a config flag for
providing the deprecated feature.**

This PR uses the `xpack.reporting.csv.enablePanelActionDownload`
kibana.yml setting, which was previously unused, for choosing behavior
of CSV export in a Dashboard saved search panel, and sets the default
value to `false`. The options allow the user to download a CSV file
without creating a report (deprecated, support will be removed in the
future) or to generate a CSV report (default).

1. Use the config as a flag to switch between implementations:
    - downloading a CSV file without a generated report
    - generating a CSV report
2. Updated documentation
3. Refactored / cleaned up tests
4. Increased API test coverage in Serverless
5. Better error handling in
`packages/kbn-reporting/public/reporting_api_client.ts`

### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)

## Release Note
Kibana CSV Reporting offered a feature allowing users to download a CSV
file from a saved search panel in a dashboard, without having a report
generated. This feature is now deprecated. Now, when users need to
access saved search data from a dashboard panel as CSV, a normal report
will be generated. To access the deprecated functionality, you can add
`xpack.reporting.csv.enablePanelActionDownload: true` to kibana.yml, but
this ability will be removed in a future version of Kibana.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-22 18:28:09 -07:00
Nicolas Chaulet
0092bb16aa
[Fleet] Support simplfied package policy in preconfiguration (#179087) 2024-03-22 06:27:35 -07:00
Dario Gieselaar
44df1f4caa
[Obs AI Assistant] Bedrock/Claude support (#176191)
~This PR still needs work (tests, mainly), so keeping it in draft for
now, but feel free to take it for a spin.~

Implements Bedrock support, specifically for the Claude models. 

Architecturally, this introduces LLM adapters: one for OpenAI (which is
what we already have), and one for Bedrock/Claude. The Bedrock/Claude
adapter does the following things:

- parses data from a SerDe (an AWS concept IIUC) stream using
`@smithy/eventstream-serde-node`.
- Converts function requests and results into XML and back (to some
extent)
- some slight changes to existing functionality to achieve _some_ kind
of baseline performance with Bedrock + Claude.

Generally, GPT seems better at implicit tasks. Claude needs explicit
tasks, otherwise it will take things too literally. For instance, I had
to use a function for generating a title because Claude was too eager to
add explanations. For the `classify_esql` function, I had to add extra
instructions to stop it from requesting information that is not there.
It is prone to generating invalid XML.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-02-09 01:17:20 -07:00
Eyo O. Eyo
92b6fd64cd
[Reporting] Support 'auto' value for csv scroll duration config (#175005)
## Summary

Closes https://github.com/elastic/kibana/issues/174988


### Checklist

Delete any items that are not applicable to this PR.
<!--
- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials -->
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
<!--
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
-->
2024-02-06 15:14:45 +01:00
Maxim Kholod
2b929cafeb
[Cloud Security] Add is_internal flag to fleet server hosts configuration (#175983)
## Summary

- Follow up after https://github.com/elastic/kibana/pull/175546
- Part of https://github.com/elastic/kibana/issues/165251

introducing a new `is_internal` config option for
`xpack.fleet.fleetServerHosts`. The usage is currently to protect the
internal fleet server hosts in the UI:

- filter them out in the Settings UI
- disable internal hosts in the agent policy form



### Checklist

Delete any items that are not applicable to this PR.

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com>
2024-02-02 17:09:22 +01:00
Ying Mao
f7e4f7a636
[Response Ops][Actions] Adding configuration to override default MS Graph API Scope and Exchange URL values (#175812)
Resolves https://github.com/elastic/kibana/issues/166064

## Summary

Adds the following configurations to the `kibana.yml` config:
* `xpack.actions.microsoftGraphApiScope` - overrides the default Graph
API scope value of `https://graph.microsoft.com/.default`
* `xpack.actions.microsoftExchangeUrl` - overrides the default value of
`https://login.microsoftonline.com`

This allows users in different Azure environments to customize their
endpoints as needed.

## To Verify

We are unable to test this in a different environment but we can verify
that the config overrides the defaults as expected by setting the config
values to something different and the logging out the params that are
sent to `getOAuthClientCredentialsAccessToken` in
`x-pack/plugins/stack_connectors/server/connector_types/email/send_email.ts`.
Then create an MS Exchange email connector and test it to see that the
logged values are overridden as expected.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-02-01 12:41:52 -05:00
Maxim Kholod
7b24ddd57e
[Cloud Security] add is_internal config option for outputs (#175546)
## Summary

- part of https://github.com/elastic/kibana/issues/165251

introducing a new `is_internal` config option for `xpack.fleet.outputs`.
The usage is currently to protect the internal outputs in the UI:
- filter out internal outputs in the Settings UI 
- disable internal outputs in output select for an agent policy

### Screencast

[screencast-github.com-2024.01.26-15_57_56.webm](917b4a76-a48f-4bdc-b3d8-5598f86febf8)


### Checklist

Delete any items that are not applicable to this PR.

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2024-01-31 13:15:57 +01:00
Tim Sullivan
1c292409e1
[Reporting/CSV Export] Add setting to use PIT or Scroll API (#174980)
## Summary

Closes https://github.com/elastic/kibana-team/issues/715

This adds the `scroll` search API method as an option for CSV. To
achieve this, administrators can update `kibana.yml` with:
```
xpack.reporting.csv.scroll.strategy: scroll
```

The valid options for this setting are `scroll` and `pit`. The default
is `pit`.

### Design
The strategy option is only customizable in `kibana.yml` settings. It
can not be set on a per-report basis without changing the YML file and
restarting Kibana.

1. User sends a request to the Server to generate a CSV report.
2. Server creates a payload and adds a “strategy” setting from the
system configuration to the payload.
3. The Server stores the payload in the Queue.
4. The Queuing System triggers an action with the payload.
5. The system reads the “strategy” setting from the payload.
6. The system begins to export data using a method based on the
strategy.

```
User⎯Request → Server
                  ↓
                Task payload (with strategy added)
                  ↓
                Kibana Task Manager⎯Action → CSV Generator
```

### Other changes

1. Reorganize source files in the kbn-generate-csv package.

### Checklist

Delete any items that are not applicable to this PR.

- [x] Update "Inspect search in Dev Tools" for scroll option
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-01-26 13:35:08 -07:00
Ying Mao
f067761ebc
[Response Ops][DOCS] Removing ESS icon from xpack.alerting.rules.maxScheduledPerMinute (#175211)
## Summary

User reported that this setting has an ESS icon indicating it's
available in cloud but it's actually not available in cloud. In the
future, if we want to create a cloud PR to add this setting, the icon
can be added back at that time.
2024-01-22 15:44:01 +00:00
Kyle Pollich
7a613fb6cb
[Fleet] Add xpack.fleet.isAirGapped flag (#174214)
## Summary

Closes https://github.com/elastic/kibana/issues/173125

Adds a new `xpack.fleet.isAirGapped` flag to `kibana.yml` that allow
users in air-gapped environments to inform Fleet that it should "fail
fast" and skip unnecessary requests that won't be possible as Kibana
doesn't have internet access.

This PR also uses the new flag to skip the API request to the
`product_versions` API if the airgapped flag is set to true. There are
probably other places we could use this flag in a similar way, but they
can be handled separately from this PR.

### Checklist

Delete any items that are not applicable to this PR.

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2024-01-04 09:22:20 -05:00
David Kilfoyle
c7fabda4c5
[DOCS] Add 'secrets' to Fleet settings page (#172637)
This updates the list of available Fleet settings in the Kibana docs, as
follows:

- Moves the `config` and `proxy_id` settings from the Required to the
Optional section of `xpack.fleet.outputs`. CC @nchaulet since the
settings were added to the docs via
https://github.com/elastic/kibana/pull/158771). [See orange highlight]
- Adds the `ssl` setting with the `certificate` property (this setting
is already available but doesn't appear to have been documented). [See
red highlight]
- Adds the new `secrets` setting, with SSL `key` as a property. [See
blue highlight]
 - Adds an example output configuration. [See green highlight]

Rel: https://github.com/elastic/ingest-docs/issues/692
See [docs
preview](https://kibana_172637.docs-preview.app.elstc.co/guide/en/kibana/master/fleet-settings-kb.html)

---

![Screenshot 2023-12-05 at 4 22 42
PM](a547bad7-57aa-4470-8328-30b80f257973)
2023-12-14 11:01:26 -05:00
Sid
7dc163a0a3
Update docs for session idletimeout default value (#170615)
## Summary

Updates the docs for `xpack.security.session.idleTimeout` value. The
value itself was updated in
https://github.com/elastic/kibana/pull/162313/
2023-11-06 14:42:50 +01:00
Julia Bardi
841eb0a633
Update fleet-settings.asciidoc with supported output types (#167042)
Updated output types in doc.
2023-10-17 13:28:55 +01:00
Kyle Pollich
eef222f134
[Fleet] Add new keep_monitoring_alive flag to agent policies (#168865)
## Summary

Ref https://github.com/elastic/kibana/issues/168629

Adds a new `keep_monitoring_alive` flag to agent policies that allows
agent environments to keep the monitoring server if they choose.

> [!note]
> `monitoring_enabled: []` needs to be explicitly set for this flag to
be honored. If `monitoring_enabled` is omitted entirely, Fleet defaults
to enabling monitoring for logs and metrics.

## To test

Create a preconfigured policy where logs/metrics monitoring is
explicitly disabled and include this new flag e.g.

```yml
xpack.fleet.agentPolicies:
  - name: Test preconfigured policy
    id: test-preconfigured-policy
    package_policies: []
    monitoring_enabled: []
    keep_monitoring_alive: true
```

Then, run Kibana and verify the `monitoring` block in the full agent
policy has monitoring enabled, but logs/metrics as disabled, e.g.


![image](f5b205ad-96f0-4e88-967a-43546bf2bf84)

You can also verify the need for `monitoring_enabled: []` by creating
another preconfigured policy e.g.

```yml
- name: Test preconfigured policy 2
    id: test-preconfigured-policy-2
    package_policies: []
    keep_monitoring_alive: true
```

This will generate a policy e.g. 


![image](013b0381-b605-49a4-8819-3dec713f1e1f)

All other combinations of enabling monitoring for logs/metrics should
also generate the policies as expected. If you want to verify every
combination manually:

```yml
xpack.fleet.agentPolicies: 
  - name: Test preconfigured policy
    id: test-preconfigured-policy
    package_policies: []
    monitoring_enabled: []
    keep_monitoring_alive: true
  - name: Test preconfigured policy 2
    id: test-preconfigured-policy-2
    package_policies: []
    keep_monitoring_alive: true
  - name: Test preconfigured policy 3
    id: test-preconfigured-policy-3
    package_policies: []
    monitoring_enabled: ['logs']
  - name: Test preconfigured policy 4
    id: test-preconfigured-policy-4
    package_policies: []
    monitoring_enabled: ['metrics']
  - name: Test preconfigured policy 5
    id: test-preconfigured-policy-5
    package_policies: []
    monitoring_enabled: ['logs', 'metrics']
```

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-10-16 10:04:59 -07:00
Lisa Cawley
15ac351351
[DOCS] Add preconfigured AWS Bedrock connector (#168663) 2023-10-16 08:23:12 -07:00
Lisa Cawley
0fc24f4181
[DOCS] Move preconfigured ServiceNow connector details (#166202) 2023-10-03 12:14:26 -04:00
Steph Milovic
b888ecb45c
[Security solution] Rename Generative AI connector to OpenAI (#167677)
[Redo this PR](https://github.com/elastic/kibana/pull/167220) because
[this PR](https://github.com/elastic/kibana/pull/167220) merged shortly
before broke it and I had to fix an import

---------

Co-authored-by: lcawl <lcawley@elastic.co>
2023-09-29 11:54:55 -05:00
Jonathan Budzenski
7dd352a65e Revert "[Security solution] Rename Generative AI connector to OpenAI (#167519)"
This reverts commit a81b620a41.
2023-09-29 11:09:02 -05:00
Steph Milovic
a81b620a41
[Security solution] Rename Generative AI connector to OpenAI (#167519) 2023-09-29 09:45:53 -06:00
Steph Milovic
bacebd27e0
[Security solution] AWS Bedrock connector (#166662) 2023-09-27 16:44:52 -06:00
Lisa Cawley
78e887884c
[DOCS] Move preconfigured Tines connector details (#166217)
Co-authored-by: Ying Mao <ying.mao@elastic.co>
2023-09-25 17:58:53 -07:00
Lisa Cawley
e74ec69a0f
[DOCS] Move preconfigured Torq connector details (#166218) 2023-09-25 08:55:25 -07:00
Lisa Cawley
3f3a27b20a
[DOCS] Move preconfigured generative AI connector details (#165418) 2023-09-20 09:22:28 -07:00
Lisa Cawley
a3a2f402fe
[DOCS] Move preconfigured Swimlane connector details (#163547) 2023-09-19 11:31:22 -07:00
Lisa Cawley
ef020b293f
[DOCS] Add preconfigured webhook connector settings (#166289) 2023-09-14 11:26:21 -07:00
Lisa Cawley
91d0d7096a
[DOCS] Move preconfigured email connector details (#165181) 2023-09-14 07:59:53 -07:00
Lisa Cawley
0f1b5a23e1
[DOCS] Move preconfigured D3 Security connector details (#166112)
Co-authored-by: Ying Mao <ying.mao@elastic.co>
2023-09-12 10:17:53 -07:00
Lisa Cawley
982b2c86bd
[DOCS] Move preconfigured IBM Resilient connector details (#166020) 2023-09-12 08:22:35 -07:00
Lisa Cawley
5e5e4cfc0a
[DOCS] Move preconfigured Slack connector details (#166212) 2023-09-12 08:20:43 -07:00
Lisa Cawley
127d4dfce7
[DOCS] Move preconfigured Microsoft Teams connector details (#166119) 2023-09-11 16:14:09 -07:00
Lisa Cawley
7267efec49
[DOCS] Move preconfigured xMatters connector details (#165923) 2023-09-11 14:25:16 -07:00
Lisa Cawley
aa6ad19335
[DOCS] Move preconfigured webhook case management connector details (#166106) 2023-09-08 16:53:54 -07:00
Lisa Cawley
d589cf246a
[DOCS] Move preconfigured Jira connector details (#165920)
Co-authored-by: Ying Mao <ying.mao@elastic.co>
2023-09-08 15:03:25 -04:00
Alexi Doak
03f0cdc327
[ResponseOps][Alerting] Create xpack.actions.queued.max circuit breaker (#164632)
Resolves https://github.com/elastic/kibana/issues/162264


## Summary

Adds a limit on the maximum number of actions that can be queued with a
circuit breaker. The limit in serverless is set to 10,000, and 1,000,000
in the other environments.

- If a rule execution exceeds the limit, the circuit breaker kicks in
and stops triggering actions.
- Alerting rule's status updated to warning when circuit breaker is hit

Did not update the `enqueueExecution` bc it's going to be removed in
https://github.com/elastic/kibana/pull/165120.


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios


### To Verify

- Create a 2 rules that have actions
- Set `xpack.actions.queued.max` in kibana.yml to a low number like 2 or
3
- Use the run soon button to queue up actions and hit the circuit
breaker.
- The actions will not be scheduled and the rule status will be set to
warning

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-07 06:59:01 -07:00
Lisa Cawley
977d7f8628
[DOCS] Move preconfigured PagerDuty connector details (#165361) 2023-09-06 14:39:40 -07:00
Jiawei Wu
456f47f3ab
[RAM] Introduce maxScheduledPerMinute rule circuit breaker and route (#164791)
## Summary
Resolves: https://github.com/elastic/kibana/issues/162262

This PR is the backend changes to add a circuit breaker
`xpack.alerting.rules.maxScheduledPerMinute` to both serverless and
other environments that limits the number of rules to 400 runs / minute
and 10000 runs / minute, respectively. There will be another PR to
follow this one that gives the user UI hints when creating/editing rules
that go over this limit.

This circuit breaker check is applied to the following routes:
- Create Rule
- Update Rule
- Enable Rule
- Bulk Enable Rule
- Bulk Edit Rule

Also adds a new route: `/internal/alerting/rules/_schedule_frequency` to
get the current total schedules per minute (of enabled rules) and the
remaining interval allotment.

### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2023-09-06 09:13:36 -07:00
Lisa Cawley
9b963bfe33
[DOCS] Move preconfigured index connector details (#165277) 2023-09-05 18:32:50 -07:00
Lisa Cawley
6b6dcdb7c3
[DOCS] Move preconfigured Opsgenie connector details (#165258) 2023-09-05 08:15:22 -07:00
Lisa Cawley
a5343ee7c8
[DOCS] Move preconfigured server log connector details (#164898) 2023-08-30 08:05:16 -07:00
James Rodewig
00853534c8
[DOCS] Add examples for proxyBypassHosts and proxyOnlyHosts settings (#164981)
Adds example values for the `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts` settings.

Closes https://github.com/elastic/kibana/issues/139560
2023-08-29 16:13:27 -04:00
Mike Côté
327af6ca2e
Add warning for max alerts circuit breaker (#164217)
In this PR, I'm adding a warning message to the docs for the
`xpack.alerting.rules.run.alerts.max` setting that indicates the
consequences when setting a value higher than the default, while also
indicating it's not supported.

<img width="862" alt="Screenshot 2023-08-21 at 5 03 52 PM"
src="46a7f5d6-f6d5-475a-ab93-edf256eb9141">

cc @lcawl

---------

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2023-08-22 07:01:29 -04:00
Tim Sullivan
9da44e3571
[Reporting/Docs] Tighten the language around CSV settings (#163505)
## Summary

Docs request to tighten the language around csv.maxSizeBytes on this
[page](https://www.elastic.co/guide/en/kibana/8.8/reporting-settings-kb.html#reporting-csv-settings).

- [x] test the links

Closes: https://github.com/elastic/kibana/issues/159112
Replaces: https://github.com/elastic/kibana/pull/161189

---------

Co-authored-by: Amy Jonsson <amy.jonsson@elastic.co>
Co-authored-by: amyjtechwriter <61687663+amyjtechwriter@users.noreply.github.com>
2023-08-15 09:18:49 -07:00
amyjtechwriter
7ef303eb36
[DOCS]Adding ESS icon to xpack.security.session.сoncurrentSessions.maxSessi… (#162493)
`xpack.security.session.сoncurrentSessions.maxSessons` in Kibana docs.

## Summary

Adding the Elastic Cloud icon to
`xpack.security.session.сoncurrentSessions.maxSessons` security setting
on [docs
page](https://www.elastic.co/guide/en/kibana/current/security-settings-kb.html).
Need to raise another PR from cloud repo to add security setting to
[cloud docs
page](https://www.elastic.co/guide/en/cloud/current/ec-manage-kibana-settings.html#ec-kibana-config).

Relates to: #160958
2023-07-31 12:26:23 +01:00
Brandon Morelli
d728789f55
[APM] Add missing settings to documentation (#161603)
### Summary

This PR adds missing APM/Observability settings to the documentation:

- `observability:apmAgentExplorerView`
- `observability:apmAWSLambdaPriceFactor`
- `observability:apmAWSLambdaRequestCostPerMillion`
- `observability:apmEnableContinuousRollups`
- `observability:apmEnableServiceMetrics`
- `observability:apmLabsButton`
- `observability:apmServiceGroupMaxNumberOfServices`
- `observability:apmDefaultServiceEnvironment`

This PR also adds @elastic/obs-docs as a codeowner to
`/x-pack/plugins/observability/server/ui_settings.ts` so that we don't
miss documenting settings moving forward.

Closes https://github.com/elastic/kibana/issues/118795.
2023-07-13 15:33:01 -07:00
Lisa Cawley
64ab4fda32
[DOCS] Fix formatting in alerting settings (#159753) 2023-06-15 07:24:38 -07:00
Steph Milovic
f5e79f7626
D3 Security Sub Actions Connector (#158569) 2023-06-05 07:53:04 -06:00