Fetch logs from Acquia Log stream, massage, and POST to New Relic Logs.
Name | Role | |
---|---|---|
SSR-Team | Infra | [email protected] |
This section is to be used to describe history of knowledge around the project in a change log
fashion
Can be used described here, or moved to a new file. If moved, add reference to docs.manifest
so that can be uploaded to doc site for better.
./index.php mass:logstream --logtypes=varnish-request --logtypes=drupal-watchdog
- Other logtypes can be fetched but their records are not parsed correctly as they don't get delivered in JSON but rather in unparsed log lines.
- Redirect stdOut if you don't 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
- LOG_TYPES (e.g.
varnish-request,drupal-watchdog
)
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
.