Hello Magnus,
I tried your solution :
event.set("[entities][hashtags][#{hash}][#{key}]", value.downcase)
And I obtained this error message :
[ERROR][logstash.filters.ruby ] Ruby exception occurred: For input string: "{"indices"=>"
I don't understand because in my filter I test if "k == text" before to try to set the value :
event.get("[entities][hashtags]").each {|hash|
hash.each { |key,value|
if key == "text"
event.tag(value.downcase)
event.set("[entities][hashtags][#{hash}][#{key}]", value.downcase)
end
}
}'
Do you have any idea?