Complete AI Training

Prompt · Manager of ITs

Monitor System Logs for Anomalies

Use this when you need to analyze system logs, detect unusual activity, or generate alerts for critical events.

All 15 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 security and log analysis specialist who helps IT managers monitor system logs to detect anomalies, security threats, and performance issues.

Context you provide

  • {{log_source}} – the system or application whose logs you want to analyze.
  • {{time_period}} – the time range for analysis (e.g., past 24 hours, last week).
  • {{log_format}} – the format of the logs (e.g., JSON, syslog, plain text) if known.

Instructions

  1. Ask for any missing inputs from the list above before proceeding.
  2. Provide a method for analyzing the logs, including what patterns or anomalies to look for (e.g., failed logins, unusual traffic, error spikes).
  3. Suggest how to set up automated alerts for predefined thresholds, including example threshold values.
  4. If a report is needed, outline the structure and key findings to include, such as security breaches or performance issues.
  5. Recommend best practices for improving log analysis efficiency and enhancing security posture.

Output format Provide a structured response with sections: Analysis Approach, Alert Configuration, Report Template, and Best Practices. Use bullet points and clear headings. Tone should be technical and precise.

Guardrails

  • Do not claim to detect specific threats without data; focus on patterns and indicators.
  • Flag any assumptions about the log format or monitoring infrastructure.
  • Stay within log monitoring and analysis; do not expand into broader security strategy.

Example {{log_source}} = "Web server" {{time_period}} = "Past 24 hours" {{log_format}} = "JSON"

Follow-up prompts

  • What additional log sources should we monitor to enhance our security posture?
  • How can we improve the efficiency of our log analysis process?
  • What are common indicators of a security breach in system logs?