{
  "updatedAt": "2026-06-01T22:21:07.682Z",
  "createdAt": "2026-06-01T22:21:07.682Z",
  "id": "QmE7mVc1XpxaEu0u",
  "name": "Error Trigger to Axiom (via stdout)",
  "description": null,
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {},
      "id": "e44d3725-d72b-426c-9a4f-56bb4979e262",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        80,
        220
      ]
    },
    {
      "parameters": {
        "jsCode": "const execution = $input.item.json.execution;\nconst workflow = $input.item.json.workflow;\n\nconst logPayload = {\n  timestamp: new Date().toISOString(),\n  level: \"error\",\n  service: \"n8n\",\n  workflow: {\n    id: workflow.id,\n    name: workflow.name\n  },\n  execution: {\n    id: execution.id,\n    url: execution.url,\n    failedNode: execution.lastNodeExecuted,\n    error: {\n      message: execution.error?.message || \"Unknown error\",\n      stack: execution.error?.stack\n    }\n  }\n};\n\n// Print to container stdout (Vector will automatically ship this to Axiom)\nconsole.log(JSON.stringify(logPayload));\n\nreturn { json: logPayload };"
      },
      "id": "4020de29-7988-4c12-9c17-bfbe362096a6",
      "name": "Format & Log to Console",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        300,
        220
      ]
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Format & Log to Console",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": null,
  "versionId": "98fe50be-4502-49a6-b136-866d7f8197ef",
  "activeVersionId": "98fe50be-4502-49a6-b136-866d7f8197ef",
  "versionCounter": 1,
  "triggerCount": 0,
  "shared": [
    {
      "updatedAt": "2026-06-01T22:21:07.687Z",
      "createdAt": "2026-06-01T22:21:07.687Z",
      "role": "workflow:owner",
      "workflowId": "QmE7mVc1XpxaEu0u",
      "projectId": "GfFdmZTqGEJQkrXG",
      "project": {
        "updatedAt": "2026-05-11T09:44:44.757Z",
        "createdAt": "2026-05-11T09:34:45.695Z",
        "id": "GfFdmZTqGEJQkrXG",
        "name": "\u00c9ole Wind <megazef@gmail.com>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "2792484d-cba3-4156-adba-fbc49134eb55"
      }
    }
  ],
  "tags": [],
  "activeVersion": {
    "updatedAt": "2026-06-01T22:21:07.689Z",
    "createdAt": "2026-06-01T22:21:07.689Z",
    "versionId": "98fe50be-4502-49a6-b136-866d7f8197ef",
    "workflowId": "QmE7mVc1XpxaEu0u",
    "nodes": [
      {
        "parameters": {},
        "id": "e44d3725-d72b-426c-9a4f-56bb4979e262",
        "name": "Error Trigger",
        "type": "n8n-nodes-base.errorTrigger",
        "typeVersion": 1,
        "position": [
          80,
          220
        ]
      },
      {
        "parameters": {
          "jsCode": "const execution = $input.item.json.execution;\nconst workflow = $input.item.json.workflow;\n\nconst logPayload = {\n  timestamp: new Date().toISOString(),\n  level: \"error\",\n  service: \"n8n\",\n  workflow: {\n    id: workflow.id,\n    name: workflow.name\n  },\n  execution: {\n    id: execution.id,\n    url: execution.url,\n    failedNode: execution.lastNodeExecuted,\n    error: {\n      message: execution.error?.message || \"Unknown error\",\n      stack: execution.error?.stack\n    }\n  }\n};\n\n// Print to container stdout (Vector will automatically ship this to Axiom)\nconsole.log(JSON.stringify(logPayload));\n\nreturn { json: logPayload };"
        },
        "id": "4020de29-7988-4c12-9c17-bfbe362096a6",
        "name": "Format & Log to Console",
        "type": "n8n-nodes-base.code",
        "typeVersion": 2,
        "position": [
          300,
          220
        ]
      }
    ],
    "connections": {
      "Error Trigger": {
        "main": [
          [
            {
              "node": "Format & Log to Console",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "authors": "\u00c9ole Wind",
    "name": null,
    "description": null,
    "autosaved": false,
    "workflowPublishHistory": [
      {
        "createdAt": "2026-06-01T22:21:07.828Z",
        "id": 178,
        "workflowId": "QmE7mVc1XpxaEu0u",
        "versionId": "98fe50be-4502-49a6-b136-866d7f8197ef",
        "event": "activated",
        "userId": "2792484d-cba3-4156-adba-fbc49134eb55"
      }
    ]
  }
}