Skip to content

Mixed kinds of rename option in single mutate filter doesn't work #159

@tasneem-hyder

Description

@tasneem-hyder

Logstash information:

  1. Logstash version
    Using JAVA_HOME defined java: /usr/local/opt/openjdk@11/libexec/openjdk.jdk/Contents/Home
    logstash 7.13.1

  2. Logstash installation source
    Mac homebrew

  3. How is Logstash being run
    via command line

OS version (uname -a if on a Unix-like system):
Darwin 18.7.0 Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64 x86_64

Issue
An issue which is seen during pipeline runtime although Logstash could have reported during application startup on configuration verification. I am aware that mutate rename option expects Hash but having Array only also works. So, the problem occurs when someone use both kinds hash and array ( added example in elastic discuss link) in single filter because Logstash doesn't report it as Invalid configuration setup. This setup is also not captured in configuration verification -t option where it thinks it as Valid, but it is not during runtime.
Details here
https://discuss.elastic.co/t/mixed-kinds-of-rename-option-in-single-mutate-filter-wont-work/283278

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions