This is a Redmine plugin that provides log file management functionality directly from the administration interface. It allows administrators to browse, view, download, and delete log files from Redmine's log directory.
- Browse log files: View a list of all log files in the Redmine log directory
- View log content: Display the last 20,000 lines of any log file
- Download logs: Download log files directly to your local machine
- Delete logs: Remove log files when they're no longer needed
- Security: Restricted to administrators only with path traversal protection
- Redmine: 6.0.0 or higher
- Ruby: Compatible with Ruby 3.1+
-
Copy the plugin directory into the
pluginsdirectory of your Redmine installation:cd /path/to/redmine git clone https://github.com/haru/redmine_logs.git plugins/redmine_logs -
Restart your Redmine application.
That's all! No database migrations or additional configuration required.
- Log in as a Redmine administrator
- Navigate to Administration → Logs
- From the logs page, you can:
- View a list of all available log files
- Click on a log file name to view its contents
- Use the download link to save log files locally
- Delete log files using the delete button
The plugin implements several security measures:
- Only administrators can access log management functionality
- All file operations are restricted to the Redmine log directory (
Rails.root/log) - Path traversal attacks are prevented through path validation
bundle exec rake redmine:plugins:test NAME=redmine_logsThis plugin is released under the GNU General Public License v2 (GPLv2). See the GPL.txt file for details.
- Haruyuki Iida (@haru_iida)
- Fork the repository
- Create your feature branch from
develop(git checkout -b feature/my-new-feature develop) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin feature/my-new-feature) - Create a new Pull Request against the
developbranch