Failed to parse field [data] of type [text]

Hi i have some issue, i find this error in logstash-plain.log how to solve it?

"error"=>{"type"=>"document_parsing_exception", "reason"=>"[1:2532] failed to parse field [data] of type [text] in document with id 'f-6ZvJIBLVE9MTub84Ab'. Preview of field's value: '{amount=xxxxxx, codeProduct=xxxxxx, sourceAccount=xxxxxx, reffBiller=xxxxxxx, branchName=UPC xxxxxx, reffSwitching=xxxxxxxx, userName=x Y x, userId=xxxxxx, responseCode=xxxxx, branchCode=xxxx, responseDesc=Approved, codeBiller=xxxx, beneficiaryAccount=xxxxxxx, kodeDisbursal=xxxxxxxxx, receipt=, currency=USH, timestamp=2024-10-24 10:37:30}'", "caused_by"=>{"type"=>"illegal_state_exception", "reason"=>"Can't get text on a START_OBJECT at 1:2076"}}}}}

You need to change the mapping in elasticsearch and set data as an object and not a text.

Make sure it is following an Elastic recognized date format or specify a custom format in your mapping as following: Date field type | Elasticsearch Guide [8.15] | Elastic