Send structured logs to BetterStack from any workflow using HTTP Request
Last edited 39 days ago
Send structured logs to BetterStack from any workflow using HTTP Request
Who is this for?
This workflow is perfect for automation builders, developers, and DevOps teams using n8n who want to send structured log messages to BetterStack Logs. Whether you're monitoring mission-critical workflows or simply want centralized visibility into process execution, this reusable log template makes integration easy.
What problem is this workflow solving?
Logging failures or events across multiple workflows typically requires duplicated logic. This workflow solves that by acting as a shared log sender, letting you forward consistent log entries from any other workflow using the Execute Workflow node.
What this workflow does
- Accepts
level
(e.g., "info", "warn", "error") andmessage
fields viaExecute Workflow Trigger
- Sends the structured log to your BetterStack ingestion endpoint via HTTP Request
- Uses HTTP Header Auth for secure delivery
- Includes a manual trigger for testing and a sample call to demonstrate usage
- Comes with clear sticky notes to help you get started
Setup
- Copy your BetterStack Logs ingestion URL.
- Create a Header Auth credential in n8n with your
Authorization: Bearer YOUR_API_KEY
. - Replace the URL in the HTTP Request node with your BetterStack endpoint.
- Optionally modify the test data or log levels for custom scenarios.
- Use
Execute Workflow
in any of your workflows to send logs here.
You may also like
New to n8n?
Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!