Build Your First Pipeline
Create a simple log processing pipeline using the Expanso Cloud pipeline builder.
What You'll Build
A pipeline that:
- Reads log files from your node
- Filters for ERROR-level logs
- Writes to STDOUT
Step 1: Create a New Pipeline
- In your workspace, go to the Pipelines tab
- Click New Pipeline
- On "How do you want to start?", choose Start from Scratch
This opens an empty pipeline in the visual builder.
Step 2: Build the Pipeline
The builder opens in the Design view. Add and configure three components using their forms.
Input: File
- Click + Add Input and select File
- In the component form, add the path
/var/log/*.log
This reads all .log files from /var/log/.
Processor: Mapping (uses Bloblang)
- Click Add Processor and select Mapping
- In the mapping field, enter:
# Only keep ERROR logsroot = if this.contains("ERROR") {this} else {deleted()}
Output: STDOUT
- Click + Add Output and select STDOUT
- In the component form, set the codec to
lines
Your pipeline now shows File → Filter → STDOUT. Click Next.
Step 3: Pipeline Details and Deploy
On the Pipeline Details step:
- Enter a Name:
error-log-filter(lowercase letters, numbers, and hyphens) - Under Node Selector, choose which nodes run the pipeline (leave it empty to target every node in the workspace, or match specific labels)
- Click Create Pipeline
The pipeline deploys to the selected nodes within seconds.
What's Next?
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