Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/timnashcouk/stream-to-file/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Stream To File
Description
Simple Extension for the [Stream Plugin] (https://en-gb.wordpress.org/plugins/stream/) that generates a log file, with individual Stream records.
Why?
writing to file, means you can use standard tools to look at the data, it also means you don't need to interact with the site to look at user activity.
Installation
As a normal WordPress Plugin, note Stream must be installed.
- Once Activate go to Stream Settings - Log File
- Set a path and if you wish to change the format modify
Format options:
- {userid}
- {userrole}
- {created}
- {summary}
- {connector}
- {context}
- {action}
- {ip}
- {displayname}
- {useremail}
- {userlogin}
IMPORTANT
This plugin does not do any log rotation, if you clear Stream, or have stream rotating logs every x days these will not affect the text log. This is intentional, if you want to rotate logs I suggest using something like logrotate:
Will set it to weekly or if reaches 20M rotate put the archives in gzip files and delete after 28 days.