require "logstash/devutils/rspec/spec_helper" require "logstash/filters/punct" describe LogStash::Filters::Punct do describe "all defaults" do config <<-CONFIG filter { punct { } } CONFIG sample "PHP Warning: json_encode() [function.json-encode]: Invalid UTF-8 sequence in argument in /var/www/htdocs/test.php on line 233" do insist { subject["punct"] } == ":_()[<='.-'>.-]:-////." end end end