{ "nodes": [ { "id": "send-a-log-to-better-stack-0", "name": "Send Log to BetterStack", "type": "n8n-nodes-base.httpRequest", "position": [ 80, 140 ], "parameters": { "method": "POST", "options": {}, "jsonBody": "={{ {message: $json.message, level: $json.level} }}", "sendBody": true, "specifyBody": "json", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "url": "https://example.com" }, "typeVersion": 4.2 }, { "id": "send-a-log-to-better-stack-1", "name": "Recieve log message", "type": "n8n-nodes-base.executeWorkflowTrigger", "notes": "from another workflow", "position": [ -140, 140 ], "parameters": { "workflowInputs": { "values": [ { "name": "level" }, { "name": "message" } ] } }, "notesInFlow": true, "typeVersion": 1.1 }, { "id": "send-a-log-to-better-stack-2", "name": "Test workflow", "type": "n8n-nodes-base.manualTrigger", "position": [ -260, -120 ], "parameters": {}, "typeVersion": 1 }, { "id": "send-a-log-to-better-stack-3", "name": "Send test log message", "type": "n8n-nodes-base.executeWorkflow", "notes": "using workflow", "position": [ -40, -120 ], "parameters": { "options": {}, "workflowId": { "__rl": true, "mode": "id", "value": "={{$workflow.id}}" }, "workflowInputs": { "value": { "level": "error", "message": "This is a test log message" }, "schema": [ { "id": "level", "type": "string", "display": true, "required": false, "displayName": "level", "defaultMatch": false, "canBeUsedToMatch": true }, { "id": "message", "type": "string", "display": true, "required": false, "displayName": "message", "defaultMatch": false, "canBeUsedToMatch": true } ], "mappingMode": "defineBelow", "matchingColumns": [], "attemptToConvertTypes": false, "convertFieldsToString": true } }, "notesInFlow": true, "typeVersion": 1.2 } ], "pinData": {}, "connections": { "Test workflow": { "main": [ [ { "node": "Send test log message", "type": "main", "index": 0 } ] ] }, "Recieve log message": { "main": [ [ { "node": "Send Log to BetterStack", "type": "main", "index": 0 } ] ] } }, "name": "Send a Log to Better Stack", "active": false }