Exporting the visitor log history

Since my piwik montly archives have grown to a cumbersome size, I wish to export them to an off-line format (ex: xls) and then delete them. How can I do it?
Thank you.

Hi, you can save every report via the export feature beneath each report. You will probably also want to look into the API documentation: Reporting API Reference - Administration - Piwik

The raw visitor log can be exported via the Live.getLastVisitsDetails API
https://piwik.org/faq/how-to/faq_24574/

But for large exports I’d also recommend you to export it directly from the MySQL database.