
Is there any way or script to parse CSV logs (any pattern) to Json. I have a scenario, I am receiving all logs in csv format to kinesis firehose directly and with help of lambda function (python) I need to transform the csv logs to json and return the output back to kinesis. How to Convert JSON to CSV in Python JSON and CSV are two different file formats, but you can convert between them in Python.

How should we convert to json if i get different patterns of csv log messages. How to convert csv logs to json using transform lambda in kinesis. Save the JSON data downloaded from Form Recognizer Studio to a local file on your computer. but my requirement is i need to convert csv (any pattern) to json.įor the above csv logs i converted like below json. So far i created script to convert one type of csv pattern(above showed) to json. juanpa. But you never even use y, and simply write the same row 7 times (the number of keys). You iterate over it, for y in x: which will iterate over it's keys.

Is there any way or script to parse CSV logs(any pattern) to Json format using lambda function(python) in kinesis.Įdited: 'message': 'starting phase |Mon, 07:38:27:399|117.0.0.2 |35970 |100986593|dev |absgf |password |0| | |0| | | | | | | |0|1d0ijf9da-9ca4-4c94a5-eandv41b4496 ' 1 Why do you do this x json.loads (json.dumps (BankData)) In any event, x is a dict object.

I have a scenario, I am receiving logs in csv format to kinesis firehose directly and with help of lambda function (python) I need to transform the csv logs format to json format and return the output back to kinesis.
