This script use node and the package moment.js. This is useful for Screaming Frog.
npm install moment
node fasterizeLogsToApacheLogFormat.js jsonFile.log > apache.log
[
{
"client_ip": "23.254.250.19",
"content_length": 25736,
"content_type": "text/html;charset=UTF-8",
"domain": "www.clarins.fr",
"fstrz_flags": "o,sc,c",
"method": "GET",
"protocol": "http",
"referer": "http://www.clarins.fr/corps/300/?utm_term=Baume%20Corps%20Super%20Hydratant%20%20clarins&gclid=CMHkpovwzdUCFS2zswod-8YCPw&utm_campaign=Bing_FR_Brand_Generic&gclsrc=ds&utm_content=Body_Cat%C3%A9gorie_Hydration&utm_source=google",
"response_time": 0.001,
"status": "200",
"timestamp": "2017-08-11T00:00:55.937Z",
"url": "/eau-dynamisante-grand-format---recharge/0064310.html",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0",
"user_agent_class": "desktop_recent"
}
]
www.clarins.fr 66.249.76.147 - - [12/Aug/2017:02:00:01 +0200] "GET /on/demandware.static/-/Library-Sites-clarins-v3/default/dw4e22bb5d/content/joli-rouge-brillant-2016/bottom-page/img/pic-texture11.jpg?frz-v145 HTTPS" 200 2740 "" "Googlebot-Image/1.0"