Skip to content

[2.0] Add example for dropping attributes #455

@strawgate

Description

@strawgate

Most attributes are useless and they consume a lot of space.

We should publish an example ingest pipeline where we drop attributes, like --

PUT _ingest/pipeline/metrics-homeassistant-pipeline
{
  "metrics-homeassistant-pipeline": {
    "description": "Pipeline for HomeAssistant dataset",
    "processors": [
      {
        "dot_expander": {
          "field": "hass.entity.attributes"
        }
      },
      {
        "remove": {
          "ignore_missing": true,
          "field": "hass.entity.attributes",
          "if": "ctx.hass.entity.domain != \"sensor\""
        }
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions