# How to Convert a dlog File to CSV

To convert dlog files to a CSV file format, you can use dlog-utils:

### Retrieve Logs from Device

Logs must be retrieved from the device before converting. There are two ways to retreive logs depending on their size:

#### For Files Less than 10MB in Size

These may be downloaded through the WaveForms Live interface. From the logger page of the Instrument Panel, click the To File Explorer button to the right of the chart. Expand the Sd0 menu then click on the file to download and then Download. Click Continue in the popup to begin the download.

#### For Larger Files

These files need to be retrieved manually by connecting the SD card to your computer and moving the file(s) over.

### Concatenate Log Files

If the log is split across multiple files, the files must first be concatenated into one file before conversion. To concatenate, run:

Windows

Get-Content .\<log-name>?.dlog | Out-File .\<combined-log-name>.dlog

Linux/Mac

cat ./<log-name>*.dlog > <combined-log-name>.dlog

### Convert Logs

To convert logs, run:

Windows

dlog-utils.exe <log-name>.dlog <csv-name>

Linux/Mac

dlog-utils.out <log-name>.dlog <csv-name>
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.2828472852706909, "perplexity": 8967.398960543633}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-51/segments/1575540525821.56/warc/CC-MAIN-20191210041836-20191210065836-00016.warc.gz"}