Logstash mutate filter, rename - "Exception in filterworker", "exception"=>#<IndexError: string not matched>

I ended up using my SQL program Postgres to export JSON in the required format for the Bulk API. Additional details regarding this can be found in these threads (1, 2).