AutomationFlowsGeneral › AI Cyber Log Analysis with DeepSeek

AI Cyber Log Analysis with DeepSeek

Original n8n title: Test Cyber Logs

Test cyber logs. Uses manualTrigger, chainLlm, lmChatDeepSeek, outputParserStructured. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexityAI-powered4 nodesChain LlmLm Chat Deep SeekOutput Parser Structured
General Trigger: Event Nodes: 4 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Chainllm → Outputparserstructured 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": "Test cyber logs",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -640,
        -224
      ],
      "id": "47c3ee48-5546-46ab-9305-89b5faa27324",
      "name": "When clicking \u2018Execute workflow\u2019"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "You purpose is to generate synthetic data for training complex domain-oriented cybersecurity systems.\nGenerate 4 \"observations\" of system log and/or kernel log and or other similar logs that are ingested by SIEM systems in general.\nEach observation should have the log/text content and a label (Neutral, Suspect, Critical). Generate the data in json format.",
        "hasOutputParser": true,
        "batching": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "typeVersion": 1.7,
      "position": [
        -176,
        -224
      ],
      "id": "a887c0b0-135c-4b98-8fb5-d9984482f6c0",
      "name": "Basic LLM Chain"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "typeVersion": 1,
      "position": [
        -272,
        16
      ],
      "id": "1c6b2e5a-859b-4fc5-86e3-f61ceba0d554",
      "name": "DeepSeek Chat Model",
      "credentials": {
        "deepSeekApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"title\": \"Log Entry Array Schema\",\n  \"description\": \"Schema for validating an array of log entries with labels for n8n output formatter\",\n  \"type\": \"array\",\n  \"minItems\": 1,\n  \"items\": {\n    \"type\": \"object\",\n    \"title\": \"Log Entry\",\n    \"description\": \"A single log entry with message and classification label\",\n    \"properties\": {\n      \"log\": {\n        \"type\": \"string\",\n        \"title\": \"Log Message\",\n        \"description\": \"The actual log line content\",\n        \"minLength\": 1,\n        \"maxLength\": 10000\n      },\n      \"label\": {\n        \"type\": \"string\",\n        \"title\": \"Classification Label\",\n        \"description\": \"The classification category for the log entry\",\n        \"enum\": [\n          \"neutral\",\n          \"suspect\",\n          \"critical\"\n        ],\n        \"default\": \"neutral\"\n      }\n    },\n    \"required\": [\n      \"log\",\n      \"label\"\n    ],\n    \"additionalProperties\": false\n  }\n}\n"
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        -80,
        -64
      ],
      "id": "a268bb36-8d1d-48eb-81b6-bd7979ab9206",
      "name": "Structured Output Parser"
    }
  ],
  "connections": {
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a852288b-5871-49a0-8b32-edd2dcc3fb39",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "Sn3MntBUM5IdPukR",
  "tags": []
}

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

Test cyber logs. Uses manualTrigger, chainLlm, lmChatDeepSeek, outputParserStructured. Event-driven trigger; 4 nodes.

Source: https://github.com/aidamian/n8n-workshop/blob/main/examples/test-cyber-logs.json — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

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

General

Manual Stickynote. Uses manualTrigger, stickyNote, chainLlm, lmChatOpenAi. Event-driven trigger; 11 nodes.

Chain Llm, OpenAI Chat, Output Parser Autofixing +1
General

Executecommand Localfile. Uses localFileTrigger, executeCommand, lmChatMistralCloud, outputParserStructured. Event-driven trigger; 16 nodes.

Local File Trigger, Execute Command, Lm Chat Mistral Cloud +2
General

ESG analysts, investors, procurement teams, activists and sustainability professionals who need comprehensive, objective assessments of companies' environmental impact and animal welfare policies. Per

OpenRouter Chat, Output Parser Structured, Execute Workflow Trigger +1
General

Cv Resume Pdf Parsing With Multimodal Vision Ai. Uses manualTrigger, stickyNote, outputParserStructured, googleDrive. Event-driven trigger; 13 nodes.

Output Parser Structured, Google Drive, HTTP Request +3
General

Stickynote Executeworkflow. Uses executeWorkflowTrigger, chainLlm, outputParserStructured, lmChatOpenRouter. Event-driven trigger; 12 nodes.

Execute Workflow Trigger, Chain Llm, Output Parser Structured +1