Skip to content

[streams] child rules are still running when deleting a parent #229715

@klacabane

Description

@klacabane

Stream rules are still active when deleting a stream indirectly via its parent. Might be good to move asset handling in the state management api

Example

// Create nested stream with a query
PUT kbn:/api/streams/logs.foo.bar
{
  "stream": {
    "description": "",
    "ingest": {
      "processing": [],
      "lifecycle": {
        "inherit": {}
      },
      "wired": {
        "fields": {},
        "routing": []
      }
    }
  },
  "dashboards": [],
  "queries": [
    {
      "id": "foo",
      "title": "foo",
      "kql": {
        "query": "message: hello"
      }
    }
  ]
}

// The corresponding rule is deleted when deleting logs.foo.bar directly
DELETE kbn:/api/streams/logs.foo.bar // OK

// but it is not deleted when deleting via a parent
DELETE kbn:/api/streams/logs.foo // rule still exists

Metadata

Metadata

Assignees

Labels

Feature:StreamsThis is the label for the Streams ProjectTeam:obs-ux-logsObservability Logs User Experience TeambugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions