Skip to content

Fetch logs from Acquia Logstream, massage, and POST to New Relic Logs.

Notifications You must be signed in to change notification settings

massgov/logs-acquia-to-newrelic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fetch logs from Acquia Logstream, massage, and POST to New Relic Logs.

Usage

./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.

Required Environment variables

  • AC_API2_KEY
  • AC_API2_SECRET
  • AC_API_ENVIRONMENT_UUID (see Prod entry in self.site.yml)
  • NR_LICENSE_KEY

Docker image

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:

  1. From the latest main branch, run docker build --platform linux/amd64 -t massgov/logs-acquia-to-newrelic:latest ..
  2. Run docker push massgov/logs-acquia-to-newrelic:latest.

About

Fetch logs from Acquia Logstream, massage, and POST to New Relic Logs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published