Skip to content

[BUG] Parse_json failed when attributes undefined #6752

@sashalarsoo

Description

@sashalarsoo

Hi got this error :

Caused by: java.lang.IllegalArgumentException: '=~' requires left operand to be String.

for this config even i checked attributes in null :

- parse_json:
            source: "/body"
            destination: "/attributes/resource.attributes.envoy"
            parse_when: '/attributes/resource.attributes.k8s.pod.name != null and /attributes/resource.attributes.k8s.pod.name =~ ".*envoy-gateway.*"'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Unplanned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions