Transforming Raw JSON Logs to CSV

Adam Presley
2 min readJun 21, 2023
Photo by Nick Fewings on Unsplash

I recently had to provide error data stored in Splunk logs to a business user (meaning non-technical). I decided to take the raw JSON log entries and convert them to CSV. Here’s how I did it.

The first step was to export the log entries and massage them into a usable format. In the case of Splunk, I searched for the log entries I needed and exported them as raw data. This gave me something that looked…

--

--

Adam Presley

Just a guy who loves his wife, kids, and writing software.