creativestyle / mageops-report-cloudwatch-forwarder
Forwards exception report files to CloudWatch Logs
Package info
github.com/mageops/php-report-cloudwatch-forwarder
pkg:composer/creativestyle/mageops-report-cloudwatch-forwarder
Requires
- php: >=8.1
- aws/aws-sdk-php: ^3.36
- psr/log: ^3
- symfony/console: ^6.4
Requires (Dev)
- clue/phar-composer: ^1.4
This package is not auto-updated.
Last update: 2026-07-31 19:08:06 UTC
README
Forwards exception reports stored as individual files to AWS CloudWatch Logs.
This something that AWS CloudWatch Agent cannot do.
You should run it in cron every couple of minutes.
Requirements
PHP >= 8.1 (the binary name carries the minimum PHP version, e.g. aws-excfwd-php81).
On servers with older default PHP, point cron at a newer interpreter explicitly:
/usr/bin/php8.1 /usr/local/bin/aws-excfwd-php81 push:directory ...
For PHP 7.x use an older release (aws-excfwd, up to and including the last
release before the PHP 8.1 requirement) from
GitHub releases.
Example usage for Magento
bin/cli.php push:directory -v --formatter=serialized_array --region=eu-central-1 --group=magento-exc-report /var/www/magento-base/current/var/report/
Build
composer install
composer build
Install
Fetch from GitHub releases
Find the latest release and install the PHAR directly.
curl -Ls https://github.com/mageops/php-report-cloudwatch-forwarder/releases/latest/download/aws-excfwd-php81 -o /usr/local/bin/aws-excfwd-php81 && chmod +x /usr/local/bin/aws-excfwd-php81
CentOS RPM Package
Install the package from MageOps RPM Repository.
Use composer global install (not recommened)
composer global require creativestyle/mageops-report-cloudwatch-forwarder