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

Add persistent event log for actions and alerting #45083

Closed
5 of 21 tasks
Tracked by #24214
pmuellr opened this issue Sep 6, 2019 · 2 comments · Fixed by #45081
Closed
5 of 21 tasks
Tracked by #24214

Add persistent event log for actions and alerting #45083

pmuellr opened this issue Sep 6, 2019 · 2 comments · Fixed by #45081
Assignees
Labels
Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.7.0

Comments

@pmuellr
Copy link
Member

pmuellr commented Sep 6, 2019

Actions and alerting need a persistent event log to record activities that have occurred with these objects, for general exploratory in general, and for the alerting / action UI specifically.

Current tack is to create a new ES index for this.

This is an umbrella task, with the following sub-tasks:

in progress PR: #45081

  • RFC (see version in PR)
  • basic ES structures; ilm, index template, alias, initial index, adding events to index
    • but OFF by default config
  • write events to log for action execution
  • basic query support via http endpoint removed because not needed ATM and security concerns

before shipping:

dreaming:

  • tests for schema generation
  • support logging to different cluster (not sure how)
  • implement file store when es calls error, to be replayed into es when it's working again
  • support for ack'ing (via new types in usual Kibana SO's?)
  • support for annotations (via new types in usual Kibana SO's?)

Quick synopsis; the event log will be a new ES index, like other indices created by Kibana plugins. ILM, rollover, templates, alias, needs all the goodies. Any Kibana plugin can depend on this plugin to get an access function to write log entries to the index. The documents indexed are a subset of ECS properties extended with some Kibana-specific properties.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-services

@epixa
Copy link
Contributor

epixa commented Oct 1, 2019

I definitely think using a dedicated index makes sense for alerting event logs. There's a lot of value in treating them like userland data rather than system information.

Have you considered using the Elastic Common Schema: https://www.elastic.co/guide/en/ecs/current/ecs-event.html ? If we could make that work, you'd get seamless integrations between alerting events and other functionality in Kibana (like SIEM).

pmuellr added a commit to pmuellr/kibana that referenced this issue Dec 11, 2019
@bmcconaghy bmcconaghy added Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) and removed Team:Stack Services labels Dec 12, 2019
pmuellr added a commit to pmuellr/kibana that referenced this issue Jan 3, 2020
@mikecote mikecote self-assigned this Jan 15, 2020
pmuellr added a commit that referenced this issue Jan 21, 2020
initial code for event log

see issue #45083
pmuellr added a commit to pmuellr/kibana that referenced this issue Jan 21, 2020
pmuellr added a commit that referenced this issue Jan 22, 2020
@kobelb kobelb added the needs-team Issues missing a team label label Jan 31, 2022
@botelastic botelastic bot removed the needs-team Issues missing a team label label Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.7.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants