spring - String conversion of special character -
json parsing exception thrown logstash whenever ® encountered. need convert ® equivalent html encoded value , push es through logstash. got few articles mentioned how convert html codes equivalent symbols looking reverse case.
if pass "®" should return me ®
if ®
passed should not format , still should return ®
update:
below script using push data es
input{ file { path => ["c:/input.json"] start_position => "beginning" sincedb_path => "/dev/null" }}filter{ mutate { replace => [ "message", "%{message}" ] gsub => [ 'message','\n',''] } json { source => message } mutate{ remove_field => ["message"] }}output { elasticsearch { hosts => ["localhost:9200"] index => "index" document_type => "type" document_id => "%{id}" } stdout { codec => rubydebug }
}
how can solve issue
Comments
Post a Comment