Logstash pipeline issues with flowfile attributes

We get json files from a Nifi and when I checked in Kibana They have a _jsonparsefailure. When I looked at the logs I see inside "message" "flowfile.attributes0000644 0000 000 000 000 and other garbage about ECDS and at the very end is is my fields. How can I fix this?

If you are seeing this in the message field with the _jsonparsefailure tag, it means that you are receiving documents that are not json in your input.

What does your pipeline looks like?