Skip to content

Instantly share code, notes, and snippets.

@grasmash
Last active March 28, 2022 19:09
Show Gist options
  • Save grasmash/4770b31b148fcc7984acb5b485a5d2d3 to your computer and use it in GitHub Desktop.
Save grasmash/4770b31b148fcc7984acb5b485a5d2d3 to your computer and use it in GitHub Desktop.
Acquia Pipelines Log forward
version: 1.3.0
services:
- mysql
- php:
version: 7.4
events:
build:
steps:
- log:
type: script
script:
# Forward log to loggly.
# @see https://documentation.solarwinds.com/en/success_center/loggly/content/admin/file-upload.htm
- curl -X POST -T /tmp/logstream https://logs-01.loggly.com/bulk/TOKEN/tag/file_upload
fail-on-build:
steps:
- log:
type: script
script:
# Forward log to loggly.
# @see https://documentation.solarwinds.com/en/success_center/loggly/content/admin/file-upload.htm
- curl -X POST -T /tmp/logstream https://logs-01.loggly.com/bulk/TOKEN/tag/file_upload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment