Home › Cybersecurity › Log triage: how to do it with AI

Log triage: how to do it with AI

Last checked

From official vendor pages; selected tasks also include dated logged-out free-plan trials. Report an error.

Intermediate Risk: High 🛡️ Cybersecurity

Paste a batch of sign-in or firewall log lines and ask an assistant to spot patterns worth investigating, like many failed logins from one IP or sign-ins from two countries an hour apart. It speeds up first-pass triage; a human confirms anything serious.

Who it’s for: Security analysts, sysadmins and small IT teams without a dedicated security operations centre.

Why high risk: Logs contain personal data, and a missed or misread pattern can leave an active attack unnoticed.

Best pick

ChatGPT has the highest score on our published rubric (94/100) of the 3 tools listed for this task. Free plan includes limited uploads; Business and Enterprise content isn't used for training by default.

Step by step

  1. Export a limited time window and only the columns needed (time, user, source IP, result).
  2. Pseudonymise usernames (user01, user02) and keep the mapping offline.
  3. Ask for suspicious patterns with the exact rows behind each.
  4. Ask for a severity and the next read-only check for each finding.
  5. Confirm findings in your SIEM or identity console.
  6. Escalate through your incident process; the AI never decides something is safe to close.

AI prompts to triage security logs

Replace the [brackets] with your details. See all prompt examples

First-pass triage
These are [sign-in/firewall] log rows (time, user, source IP, result) for [window]. Find suspicious patterns: brute force, password spraying, impossible travel, unusual hours, new countries. For each, list the matching rows, severity and the next read-only check.

[paste]
Write a query
Write a [KQL/Splunk SPL/grep] query that finds [pattern] in [table/log] over the last 24 hours, and explain each part.
Summarise for the ticket
Summarise these findings for an incident ticket: what was seen, affected (pseudonymised) accounts, time range, confidence, and recommended next steps.

Illustrative example

You paste

09:01 user07 203.0.113.5 FAIL
09:01 user12 203.0.113.5 FAIL
09:02 user03 203.0.113.5 FAIL
09:02 user19 203.0.113.5 FAIL
09:03 user07 198.51.100.8 SUCCESS

A good answer looks like

Pattern: possible password spraying. One IP (203.0.113.5) failed against 4 different accounts in 2 minutes.
Severity: Medium to High.
Note: user07 then succeeded from a different IP at 09:03. Check that sign-in in your identity console (device, location, MFA).
Next: look up 203.0.113.5 across the last 7 days.

Illustrative example written for this guide, not output captured from a specific tool.

We tried it

Logged-out free-plan trial on . Each card lists the model or plan shown during the run. Not tested yet: Claude (incl. Claude Code).

Prompt used

These are sign-in log rows (time, user, source IP, result) for 2026-10-26 00:00–23:59 UTC. Find suspicious patterns: brute force, password spraying, impossible travel, unusual hours, new countries. For each, list the matching rows, severity and the next read-only check.

2026-10-26T02:11:04Z,[email protected],203.0.113.10,fail
2026-10-26T02:11:09Z,[email protected],203.0.113.10,fail
2026-10-26T02:11:14Z,[email protected],203.0.113.10,fail
2026-10-26T02:11:20Z,[email protected],203.0.113.10,fail
2026-10-26T02:11:25Z,[email protected],203.0.113.10,success
2026-10-26T09:02:01Z,[email protected],198.51.100.44,success
2026-10-26T09:45:12Z,[email protected],198.51.100.44,fail
2026-10-26T09:45:40Z,[email protected],198.51.100.44,fail
2026-10-26T09:46:05Z,[email protected],198.51.100.44,fail
2026-10-26T14:10:00Z,[email protected],203.0.113.200,success

Google Gemini Model/plan: Free (logged out) · Tested: · ~17s · Free

Output (trimmed)

Analysis of the provided sign-in logs reveals three distinct security incidents, including a confirmed brute-force success, a password spraying campaign, and a high-risk account compromise indicator. 1. Brute Force Attack ([email protected]) Matching Rows: 2026-10-26T02:11:04Z, [email protected], 203.0.113.10, fail 2026-10-26T02:11:09Z, [email protected], 203.0.113.10, fail 2026-10-26T02:11:14Z, [email protected], 203.0.113.10, fail 2026-10-26T02:11:20Z, [email protected], 203.0.113.10, fail 2026-10-26T02:11:25Z, [email protected], 203.0.113.10, success Severity …

Separated brute-force-like and spray-like patterns from the sample rows with follow-up checks. Same caution: sample data only; do not change accounts on AI advice alone.

ChatGPT (incl. Work & Codex) Model/plan: Free (logged out) · Tested: · ~42s · Free

Output (trimmed)

Sign-in log security triage — 2026-10-26 UTC Overall assessment: Moderate concern; investigate the successful logins associated with suspicious patterns. The logs show a concentrated failed-login sequence followed by success, a possible password-spraying pattern, and a same-user sign-in from a second IP. However, the IP addresses and timestamps alone do not establish compromise, geographic location, or impossible travel. 1. …

Flagged alice’s rapid fails-then-success and the multi-user fails from one IP with severity and next read-only checks. Treat as triage hints only—validate against your SIEM before acting.

Not tested yet: Claude (incl. Claude Code).

Which tool to pick, and why

Tool notes below come from official plan and feature pages. The “We tried it” section above is separate hands-on output. Sources: claude.com/pricing · chatgpt.com/pricing · gemini.google/subscriptions/

Common mistakes

Privacy tip

Pseudonymise usernames and, where policy requires, internal IPs. Use a work account covered by your organisation's agreement where possible, and switch off training in personal accounts (Claude: Settings → Privacy; ChatGPT: Data controls).

Claude (incl. Claude Code) setting · ChatGPT (incl. Work & Codex) setting · Google Gemini setting · Sources: privacy.claude.com/en/articles/12109829-how-do-i-change-my-model-improvement-privacy-settings · help.openai.com/en/articles/7730893-data-controls-in-chatgpt · support.google.com/gemini/answer/13594961

Related tasks

Report an error on this page