Skip to main content

Overview

IncidentFox provides 7 specialized log analysis tools that work across any log backend (CloudWatch, Elasticsearch, Coralogix, Splunk, etc.). These tools help identify patterns, anomalies, and correlations in log data.

Tools Available

log_get_statistics

Get statistical overview of log data:
Returns:
  • Total log volume
  • Error rate percentage
  • Log level distribution
  • Top error messages
  • Throughput over time

log_sample

Sample logs to understand patterns without overwhelming data:
Use cases:
  • Initial investigation to understand error types
  • Pattern discovery before targeted searches
  • Representative data for analysis

log_search_pattern

Search for specific patterns using regex:
Supports:
  • Full regex syntax
  • Case-insensitive matching
  • Multi-line patterns

log_around_timestamp

Get context around a specific event:
Returns:
  • Logs from the target service
  • Related logs from dependent services
  • System events in the timeframe

log_correlate_events

Correlate events across services using trace IDs or request IDs:
Returns:
  • Timeline of events across services
  • Latency breakdown by service
  • Error propagation path

log_extract_signatures

Identify recurring error patterns automatically:
Process:
  1. Clusters similar log messages
  2. Extracts common patterns (parameterized)
  3. Ranks by frequency and impact
Example output:

log_detect_anomalies

Find unusual patterns in log data:
Detects:
  • Unusual log volume spikes/drops
  • New error types not seen before
  • Abnormal patterns in log messages

Configuration

Backend Selection

Configure which log backend to use:

Sampling Settings

Use Cases

Error Investigation

  1. Start with log_get_statistics to understand volume
  2. Use log_sample to see representative errors
  3. Apply log_extract_signatures to identify patterns
  4. Drill down with log_search_pattern

Incident Timeline

  1. Identify incident start with log_detect_anomalies
  2. Get context with log_around_timestamp
  3. Trace across services with log_correlate_events

Proactive Monitoring

  1. Run log_detect_anomalies to find new issues
  2. Extract signatures to track recurring problems
  3. Correlate with deployment events

Best Practices

Time Ranges

Start with narrow time ranges and expand if needed:
  • Initial investigation: 1 hour
  • Pattern analysis: 24 hours
  • Trend analysis: 7 days

Filtering

Use service/component filters to reduce noise:

Correlation IDs

Ensure your services log correlation IDs for effective tracing:
  • Trace ID (OpenTelemetry)
  • Request ID
  • Session ID

Next Steps

Anomaly Detection

Metric anomaly detection

Elasticsearch

Configure Elasticsearch