Fetch logs from Acquia Logstream, massage, and POST to New Relic Logs.
./index.php mass:logstream --logtypes=varnish-request --logtypes=drupal-watchdog
- Other logtypes can be fetched but their records are not parsed correctly as they dont get delivered in JSON but rather in unparsed log lines.
- Redirect stdOut if you dont want to see log lines in the console.
- AC_API2_KEY
- AC_API2_SECRET
- AC_API_ENVIRONMENT_UUID (see Prod entry in self.site.yml)
- NR_LICENSE_KEY
See Docker Hub for a containerized version of this command.
This Docker image is used in the Digital Services Elk Stack to stream logs to New Relic.
To manually build and push a new version of the container to Docker Hub:
- From the latest main branch, run
docker build --platform linux/amd64 -t massgov/logs-acquia-to-newrelic:latest .
. - Run
docker push massgov/logs-acquia-to-newrelic:latest
.