Hi,
I was wondering if anyone knew why I'm getting this exception for the following ruby code. It seems to not recognize the gsub method. Do I have to initialize it in order for LS to understand it?
ruby{
code => {"
a = event.get('Summary')
a = a.gsub(/[^A-Za-z]/, '')
"}
}
This is the error I'm getting:
[2017-02-21T08:27:53,959][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `gsub' for #<Array:0x6f3945b6>
[2017-02-21T08:27:53,962][ERROR][logstash.filters.ruby ] Ruby exception occurred: undefined method `gsub' for #<Array:0x4caf6a97>