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

Error converting boolean values in Logstash 8.11.1: Can't modify frozen string #170

Closed
edmocosta opened this issue Nov 22, 2023 · 0 comments · Fixed by #171
Closed

Error converting boolean values in Logstash 8.11.1: Can't modify frozen string #170

edmocosta opened this issue Nov 22, 2023 · 0 comments · Fixed by #171
Assignees

Comments

@edmocosta
Copy link
Contributor

Logstash information:

Logstash version (e.g. bin/logstash --version): 8.11.1

Description of the problem including expected versus actual behavior:
The mutate filter throws an error (can't modify frozen String) when converting a boolean value into a string in Logstash 8.11.1.
It seems to be related to the Ruby's change: https://bugs.ruby-lang.org/issues/16150.

Steps to reproduce

Run Logstash with the following pipeline:

    input { 
      generator {
        count => 1
        message => '{ "data": true }'
        codec => json
      } 
    }
     
    filter {
      json { source => "message" }
      mutate { "convert" => { "data" => "string" } }
    }
     
    output {
       stdout { codec => rubydebug { metadata => true } }
    }

Provide logs (if relevant):

[2023-11-22T10:31:40,964][WARN ][logstash.filters.mutate  ][test][67292f266c4fca48609a3e09ef25244e824940b8da72205243c1f3b9e448ecfb] Exception caught while applying mutate filter {:exception=>"can't modify frozen String"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant