Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Response Ops] API to retrieve execution log entries from event log. #127339

Merged
merged 68 commits into from
Mar 18, 2022
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
bab6494
wip
ymao1 Mar 4, 2022
037d7d4
wip
ymao1 Mar 4, 2022
188043d
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 7, 2022
939340e
Reverting changes not related to event log aggregation
ymao1 Mar 7, 2022
40a93a4
Reverting changes not related to event log aggregation
ymao1 Mar 7, 2022
c40c902
Updating event log client find to take array of sort options
ymao1 Mar 7, 2022
4ffccb6
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 7, 2022
d2de541
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 7, 2022
1b13695
Updating tests and adding basic aggregation function
ymao1 Mar 7, 2022
9d6e606
Adding tests
ymao1 Mar 7, 2022
63e8ebf
Fixing functional test
ymao1 Mar 8, 2022
86d8812
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 8, 2022
c22c460
Fixing functional test
ymao1 Mar 8, 2022
6c87182
Revert "Reverting changes not related to event log aggregation"
ymao1 Mar 8, 2022
2f8a87c
Revert "Reverting changes not related to event log aggregation"
ymao1 Mar 8, 2022
a03ce1d
Getting aggregation and parsing aggregation results
ymao1 Mar 8, 2022
08d52ca
Cleanup
ymao1 Mar 8, 2022
bf45ff2
Changing api to internal
ymao1 Mar 8, 2022
f68a469
Fixing types
ymao1 Mar 8, 2022
e13ed64
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 8, 2022
85dd7f2
Merge branch 'alerting/event-log-aggregate' into alerting/execution-l…
ymao1 Mar 8, 2022
386203a
Merge branch 'main' into alerting/event-log-aggregate
kibanamachine Mar 8, 2022
45ea81c
PR feedback
ymao1 Mar 9, 2022
5709f0c
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 9, 2022
04b68d4
Merge branch 'alerting/event-log-aggregate' of https://github.com/yma…
ymao1 Mar 9, 2022
cb88e34
Merge branch 'main' into alerting/event-log-aggregate
kibanamachine Mar 9, 2022
904d63c
Merge branch 'alerting/event-log-aggregate' into alerting/execution-l…
ymao1 Mar 9, 2022
677b0d2
Merge branch 'main' into alerting/event-log-aggregate
kibanamachine Mar 9, 2022
ec23e2c
omg types
ymao1 Mar 9, 2022
95b3fdf
types and optional accessors
ymao1 Mar 9, 2022
18e2e62
Adding fn to calculate num executions based on date range
ymao1 Mar 9, 2022
e1e2246
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 9, 2022
c4fca5e
Fleshing out rules client function and tests
ymao1 Mar 9, 2022
8037913
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 9, 2022
2016440
Merge branch 'alerting/event-log-aggregate' of https://github.com/yma…
ymao1 Mar 9, 2022
b491f0d
Merge branch 'alerting/event-log-aggregate' into alerting/execution-l…
ymao1 Mar 9, 2022
adf0384
http api
ymao1 Mar 9, 2022
47623f3
Cleanup
ymao1 Mar 9, 2022
873a22e
Merge branch 'alerting/event-log-aggregate' into alerting/execution-l…
ymao1 Mar 9, 2022
f87b4fe
Adding schedule delay
ymao1 Mar 9, 2022
ed52883
Limit to 1000 logs
ymao1 Mar 9, 2022
9d706ca
Fixing security tests
ymao1 Mar 9, 2022
6822a79
Fixing unit tests
ymao1 Mar 10, 2022
eae7c6a
Validating numExecutions
ymao1 Mar 10, 2022
8636b8f
Changing sort input format
ymao1 Mar 10, 2022
dc24753
Adding more sort fields
ymao1 Mar 10, 2022
7a3f20f
Fixing unit tests
ymao1 Mar 10, 2022
dfd1fb3
Adding functional tests
ymao1 Mar 10, 2022
f37aebb
Merging in main
ymao1 Mar 10, 2022
73b7278
Adding sort to terms aggregation
ymao1 Mar 10, 2022
ce98738
Fixing functional test
ymao1 Mar 10, 2022
32cce2d
Merge branch 'main' into alerting/execution-log-api
kibanamachine Mar 14, 2022
1fad867
Adding audit event for rule GET
ymao1 Mar 14, 2022
e0878d4
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 14, 2022
7501057
Adding audit event for rule execution log GET
ymao1 Mar 14, 2022
2a9a284
PR feedback
ymao1 Mar 14, 2022
b92c825
Merge branch 'main' into alerting/execution-log-api
kibanamachine Mar 17, 2022
8ca934d
Adding gap policy and using static num buckets
ymao1 Mar 18, 2022
427c062
Merge branch 'alerting/execution-log-api' of https://github.com/ymao1…
ymao1 Mar 18, 2022
3f3c7fd
Fixing checks
ymao1 Mar 18, 2022
acd64e4
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 18, 2022
2c3c19a
Merge branch 'main' into alerting/execution-log-api
kibanamachine Mar 18, 2022
553b61c
Merge branch 'main' into alerting/execution-log-api
kibanamachine Mar 18, 2022
f0be261
Merging in main
ymao1 Mar 18, 2022
0b36943
Merge branch 'main' into alerting/execution-log-api
kibanamachine Mar 18, 2022
712213f
Merge branch 'main' of https://github.com/elastic/kibana into alertin…
ymao1 Mar 18, 2022
25c80d7
Merge branch 'alerting/execution-log-api' of https://github.com/ymao1…
ymao1 Mar 18, 2022
b52adb1
Fixing checks
ymao1 Mar 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/user/security/audit-logging.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,10 @@ Refer to the corresponding {es} logs for potential write errors.
| `success` | User has accessed a rule.
| `failure` | User is not authorized to access a rule.

.2+| `rule_get_execution_log`
| `success` | User has accessed execution log for a rule.
| `failure` | User is not authorized to access execution log for a rule.

.2+| `rule_find`
| `success` | User has accessed a rule as part of a search operation.
| `failure` | User is not authorized to search for rules.
Expand Down
1 change: 1 addition & 0 deletions x-pack/plugins/alerting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ When a user is granted the `read` role in the Alerting Framework, they will be a
- `get`
- `getRuleState`
- `getAlertSummary`
- `getExecutionLog`
- `find`

When a user is granted the `all` role in the Alerting Framework, they will be able to execute all of the `read` privileged api calls, but in addition they'll be granted the following calls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export enum ReadOperations {
Get = 'get',
GetRuleState = 'getRuleState',
GetAlertSummary = 'getAlertSummary',
GetExecutionLog = 'getExecutionLog',
Find = 'find',
}

Expand Down
Loading