1. logzio/logzio-orb@1.0.1

logzio/logzio-orb@1.0.1

Partner
Sections
Integrate Logz.io with your CircleCI CI/CD pipeline easily with the logzio-orb.
Created: January 28, 2020Version Published: March 3, 2020Releases: 2
Org Usage:
< 25

Orb Quick Start Guide

Use CircleCI version 2.1 at the top of your .circleci/config.yml file.

1 version: 2.1

Add the orbs stanza below your version, invoking the orb:

1 2 orbs: logzio-orb: logzio/logzio-orb@1.0.1

Use logzio-orb elements in your existing workflows and jobs.

Opt-in to use of uncertified orbs on your organization’s Security settings page.

Usage Examples

send_to_logzio

How to send a log file to Logz.io

1 2 3 4 5 6 7 8 9 jobs: build: machine: true steps: - logzio-orb/submit: dir-path: logs orbs: logzio-orb: logzio/logzio-orb@x.y version: 2.1

Commands

submit

"Collect data from this job and report to Logz.io. Note: MUST BE THE LAST COMMAND IN JOB AND THE DATA NEEDS TO BE LESS THEN 10MB."

Show command Source
PARAMETER
DESCRIPTION
REQUIRED
DEFAULT
TYPE
dir-path
absolute or relative path to the directory you wish to upload. Do not include trailing slash.
Yes
-
string
logzio-token
This is your Logz.io account token
No
LOGZIO_TOKEN
env_var_name
logzio-url
Your Logz.io listener URL, port, and token. The format should look like this: PROTOCOL://LOGZIO_HOST:PORT(https://listener.logz.io:8022)
No
https://listener.logz.io:8022
string

Orb Source

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 # This code is licensed from CircleCI to the user under the MIT license. # See here for details: https://circleci.com/developer/orbs/licensing commands: submit: description: | "Collect data from this job and report to Logz.io. Note: MUST BE THE LAST COMMAND IN JOB AND THE DATA NEEDS TO BE LESS THEN 10MB." parameters: dir-path: description: absolute or relative path to the directory you wish to upload. Do not include trailing slash. type: string logzio-token: default: LOGZIO_TOKEN description: This is your Logz.io account token type: env_var_name logzio-url: default: https://listener.logz.io:8022 description: 'Your Logz.io listener URL, port, and token. The format should look like this: PROTOCOL://LOGZIO_HOST:PORT(https://listener.logz.io:8022) ' type: string steps: - run: command: | # Send data to Logz.io gzip <<parameters.dir-path>>/* for file in <<parameters.dir-path>>/* do curl -v -i <<parameters.logzio-url>>/file_upload/$<<parameters.logzio-token>>/circleci -H'Content-Encoding: gzip' --data-binary @$file; done; name: Logz.io Send Log file when: always description: | Integrate Logz.io with your CircleCI CI/CD pipeline easily with the logzio-orb. display: home_url: https://logz.io/ source_url: https://github.com/logzio/logzio-orb examples: send_to_logzio: description: | How to send a log file to Logz.io usage: jobs: build: machine: true steps: - logzio-orb/submit: dir-path: logs orbs: logzio-orb: logzio/logzio-orb@x.y version: 2.1 version: 2.1
Developer Updates
Get tips to optimize your builds
Or join our research panel and give feedback
By submitting this form, you are agreeing to ourTerms of UseandPrivacy Policy.