This plugin is unmaintained! Please find something better.
Or feel free to fork it and fix all bugs... :)
Plugin for OctoPrint - saves filename, print time and filament usage for each print
Setup
Install the plugin using Plugin Manager bundled with OctoPrint :)