How to get "Log" File from ".log" or ".txt" to ".json"

Thanks @Mateus_Cruz I was able to create .json log from UiPath with above details.
However to upload the json log into ElasticSearch it requires “Action_metadata” before each json object line.
I was not able to add this action metadata before each line
ex. {“index”:{“_index”:“XXXXXX”,“_type”:“act”,“_id”:0}} where _id is incremental.

Do we have to make any changes in Config file to get this Action_metadata added before each json object line?

Thanks in Advance.