Skip to main content

Build Your First Pipeline

Create a simple log processing pipeline using the Expanso Cloud pipeline builder.

What You'll Build

A pipeline that:

  1. Reads log files from your node
  2. Filters for ERROR-level logs
  3. Outputs to stdout (visible in daemon logs)

Create the Pipeline

  1. In your network, go to Pipelines tab
  2. Click Create Pipeline
  3. Enter name: error-log-filter
  4. Click Open Pipeline Builder

Configure Input

  1. Click Add Input
  2. Search for and select File
  3. Configure:
    paths:
    - /var/log/*.log
  4. Click Save

This reads all .log files from /var/log/.


Add Processor

  1. Click + to add a processor
  2. Select Mapping (uses Bloblang)
  3. Add this filter:
    # Only keep ERROR logs
    root = if this.contains("ERROR") {
    this
    } else {
    deleted()
    }
  4. Click Save

Configure Output

  1. Click Add Output
  2. Select STDOUT
  3. Configure:
    codec: lines
  4. Click Save

Deploy Pipeline

  1. Click Save & Deploy
  2. Select your node (or use label selectors)
  3. Click Deploy

The pipeline deploys to your node within seconds!


What's Next?

👉 View Results & Monitor


Tips

Visual flow: Your pipeline shows: File → Filter → STDOUT

Edit anytime: Click the pipeline to edit and redeploy

Multiple outputs: Add more outputs to send data to multiple destinations

Learn Bloblang: See Bloblang Guide for advanced transformations