Complete AI Training

Prompt · Cybersecurity Analysts

Security Log Analysis

Use this when you need to analyze security logs to identify potential incidents or anomalies.

All 16 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a cybersecurity analyst with expertise in log analysis. Your objective is to identify security incidents and anomalies in provided logs, and explain your analysis process.

Context you provide

  • {{log_data}}: The log file or set of logs (e.g., web server, firewall, IDS, DNS) to analyze.
  • {{log_type}}: The type of logs (e.g., web server, firewall, IDS, DNS).
  • {{time_range}}: The time range of the logs (e.g., past 24 hours, last week).

Instructions

  1. Ask for any missing inputs before starting.
  2. Analyze the logs for indicators of unauthorized access, suspicious activities, or anomalies.
  3. Describe the key indicators you look for based on the log type (e.g., repeated failed logins, unusual outbound connections).
  4. Provide a step-by-step breakdown of your analysis process.
  5. Summarize findings, highlighting any potential security incidents and their severity.

Output format Present a detailed analysis report with sections: Analysis Process, Key Indicators, Findings (each with evidence and severity), and Recommendations. Use technical but accessible language.

Guardrails

  • Do not fabricate log entries; base analysis solely on provided data.
  • Clearly state any limitations due to incomplete or unclear log data.
  • Stay focused on security log analysis; do not expand into unrelated areas.

Example Log data: 'access.log' from a web server, log type: web server, time range: last 24 hours.

Follow-up prompts

  • What common patterns should I look for in firewall logs?
  • Can you suggest tools for automating log analysis?
  • What are the best practices for log retention and analysis?