AutomationFlowsData & Sheets › Shared: Log Event

Shared: Log Event

00-shared: Log Event. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 2 nodes.

Event trigger★☆☆☆☆ complexity2 nodesExecute Workflow TriggerPostgres
Data & Sheets Trigger: Event Nodes: 2 Complexity: ★☆☆☆☆ Added:

This workflow follows the Execute Workflow Trigger → Postgres recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "00-shared: Log Event",
  "nodes": [
    {
      "parameters": {},
      "id": "trg-log",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "INSERT INTO app.logs (workflow, module, level, message, context, execution_id) VALUES ($1, $2, $3, $4, $5::jsonb, $6);",
        "options": {
          "queryReplacement": "={{ $json.workflow || 'unknown' }},{{ $json.module || '' }},{{ $json.level || 'info' }},{{ $json.message || '' }},{{ JSON.stringify($json.context || {}) }},{{ $json.execution_id || $execution.id }}"
        }
      },
      "id": "pg-log",
      "name": "Insert Log Row",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.5,
      "position": [
        480,
        300
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Insert Log Row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

00-shared: Log Event. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 2 nodes.

Source: https://github.com/AskariJafri/job-search-os/blob/main/n8n/workflows/00-shared/log-event.json — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

Calidad de Lata — 7b) Tool Consultar Evidencias. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 5 nodes.

Execute Workflow Trigger, Postgres
Data & Sheets

Feedback Collection and Training Data. Uses executeWorkflowTrigger, postgres, httpRequest. Event-driven trigger; 4 nodes.

Execute Workflow Trigger, Postgres, HTTP Request
Data & Sheets

Interaction Logging Workflow. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.

Execute Workflow Trigger, Postgres
Data & Sheets

Stage C. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.

Execute Workflow Trigger, Postgres
Data & Sheets

Handoff_data. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 2 nodes.

Execute Workflow Trigger, Postgres