For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create a logging pipeline

Usage

ionosctl logging-service pipeline create [flags]

Aliases

For logging-service command:

[log-svc]

For pipeline command:

[p pipelines]

Description

Create a logging pipeline together with its first log stream. On success the pipeline's ingestion addresses (TCP/HTTP) and Grafana address are returned; generate a key with 'pipeline key' before shipping logs.

There are two ways to define the pipeline:

  1. Flags: --name plus a single log described by --log-tag, --log-source, --log-protocol (and optionally --log-type, --log-retention-time, --log-labels). This creates a pipeline with exactly one log.

  2. --json-properties: a path to a JSON file describing the full pipeline, which lets you define MULTIPLE logs at once. Use --json-properties-example to print a ready-to-edit template.

A pipeline must contain at least one log, which is why source, tag and protocol are required in flag mode.

Valid values: --log-source: docker, systemd, kubernetes, generic (the kind of workload the log comes from) --log-protocol: http or tcp (how your shipper connects to the ingestion endpoint) --log-type: the destination backend; currently loki --log-retention-time: 7, 14 or 30 days

Note: --name and --log-source are normalised to lower-case before being sent.

Options

Examples

Last updated