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

[libbeat] Fix add_labels flattening of arrays values #29211

Merged

Commits on Dec 1, 2021

  1. Fix add_labels flattening of arrays values

    The processor was not working as described in the docs. For example:
    
    ```yaml
    processors:
      - add_labels:
          labels:
            number: 1
            with.dots: test
            nested:
              with.dots: nested
            array:
              - do
              - re
              - with.field: mi
    ```
    
    ```json
    {
      "labels": {
        "array": [
          "do",
          "re",
          {
            "with": {
              "field": "mi"
            }
          }
        ],
        "nested.with.dots": "nested",
        "number": 1,
        "with.dots": "test"
      }
    ```
    
    ```json
    {
      "labels": {
        "number": 1,
        "with.dots": "test",
        "nested.with.dots": "nested",
        "array.0": "do",
        "array.1": "re",
        "array.2.with.field": "mi"
      }
    }
    ```
    andrewkroh committed Dec 1, 2021
    Configuration menu
    Copy the full SHA
    4a62f82 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14ad7cd View commit details
    Browse the repository at this point in the history