I wrote a piece of code that aims at injecting IRC eggdrop logs to an elasticsearch 6.4 database using python elasticsearch's bulk
. It is written in python, using version 3.7, tested on NetBSD, Linux and Mac OS X.
Some logfiles are imported, but some fail with this error:
elasticsearch.exceptions.RequestError: TransportError(400,
'illegal_argument_exception', 'Malformed action/metadata line [387],
expected START_OBJECT or END_OBJECT but found [VALUE_STRING]')
I read quite a lot of elastic.co forums posts and SO answers where OP had a formatting error on its dataset, missing fields or so, but I can't find one in mine. Plus, again, not all the logfiles are rejected with this error.
I was looking at an encoding error but everything seems file on this area.
Ideas?