Browse docs
On this page

obi send

Send log events in from the terminal or a pipe with an ingest key.

obi send writes events through HTTP ingestion.

Shell
obi send "MESSAGE" [--level info] [--service NAME] [--field key=value]
COMMAND | obi send [--service NAME]

Examples

Shell
obi send "deploy finished" --service ci --level info --ingest-key obi_ingest_...
obi send "cache cleared" --field region=eu-west-1 --field build=1432
some-command 2>&1 | obi send --service batch

Piped input is sent one line per event.

Flags

FlagMeaning
--ingest-key KEYThe ingest key to send with. Defaults to OBI_INGEST_KEY, then the current context's credential.
--level LEVELThe event's level, such as info or error.
--service NAMEThe service the event comes from.
--field KEY=VALUEAn extra field. Repeat it for more.

obi send needs an ingest key, not a personal access token, because the ingest key decides which data input the events belong to. Create one with obi create api-key NAME --scope ingest.