Automated Log Classification System for Device Security Infrastructure

palo_alto_networks · Tech · 2026 · source Agentic: no · promotional bias: high · source-backed · extracted with prompt 0.5.4 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Device security infrastructure operations

Palo Alto Networks' Device Security team needed to detect production issues earlier in more than 200 million daily service and application logs without sending every log through an expensive LLM classifier.

Constraints:

Architecture

Palo Alto Networks and AWS GenAIIC built a three-stage Bedrock pipeline. FluentD and Kafka ingest logs. Stage 1 uses Aurora exact matching, overlap similarity, and Titan Text Embeddings semantic matching to deduplicate and cache over 99% of daily logs before LLM invocation. Stage 2 uses Titan embeddings and vector similarity search to retrieve labeled historical examples for the small set of unique logs. Stage 3 sends the unique log plus dynamically selected examples to Anthropic Claude Haiku on Amazon Bedrock, which returns structured P1/P2/P3 severity classifications and reasoning. Results are stored in Aurora/cache and flow to S3, Redshift, and SME review for action and continuous improvement.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  fluentd-and-kafka-ingestion[FluentD and Kafka ingestion] --> aurora-cache[Aurora cache]
  aurora-cache --> overlap-similarity-matcher[Overlap similarity matcher]
  overlap-similarity-matcher --> titan-semantic-matcher[Titan semantic matcher]
  titan-semantic-matcher --> historical-example-retriever[Historical example retriever]
  historical-example-retriever --> claude-haiku-classifier[Claude Haiku classifier]
  claude-haiku-classifier --> output-storage[Output storage]
  output-storage --> aurora-cache
  output-storage --> sme-review-interface[SME review interface]
  sme-review-interface --> historical-example-retriever
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
FluentD and Kafka ingestion Feeds incoming service and application logs from the existing infrastructure pipeline. Aurora cache
Aurora cache Stores cached classifications and supports exact matching before expensive model calls. FluentD and Kafka ingestion, Overlap similarity matcher, Output storage
Overlap similarity matcher Checks for near-duplicate log patterns before semantic matching is needed. Aurora cache, Titan semantic matcher
Titan semantic matcher Uses Amazon Titan Text Embeddings for semantic similarity and context retrieval. Overlap similarity matcher, Historical example retriever
Historical example retriever Selects dynamically relevant labeled examples for unique logs. Titan semantic matcher, Claude Haiku classifier
Claude Haiku classifier Classifies unique logs into P1/P2/P3 severity and emits reasoning. Historical example retriever, Output storage
Output storage Stores results in Aurora/cache and sends them to S3 and Redshift for reporting. Aurora cache, SME review interface
SME review interface Lets subject-matter experts validate classifications and add new labeled examples. Output storage, Historical example retriever

Data flow

Incoming logs flow from FluentD and Kafka into an Aurora-backed cache. The system attempts exact matching, overlap similarity, and semantic similarity to reuse prior classifications. Unique logs pass to a Titan-embedding context retrieval stage that finds similar labeled examples. Bedrock with Claude Haiku classifies severity and reasoning, then persists outputs to Aurora/cache and downstream S3/Redshift reporting plus SME review.

4 supporting quotes
“The following diagram (Figure 1) illustrates how the three-stage pipeline processes Palo Alto Networks’ 200 million daily log volume”article, stated
“Incoming logs from Palo Alto Networks’ FluentD and Kafka pipeline are immediately processed through an Aurora based caching layer.”article, stated
“the system uses Amazon Titan Text Embeddings to identify the most relevant historical examples from Palo Alto Networks’ labeled dataset.”article, stated
“* Stage 3: Classification with Amazon Bedrock – Unique logs and their selected examples are processed by Amazon Bedrock using Anthropic’s Claude Haiku model.”article, stated

Why this architecture

The design solves the scale problem by making the LLM the last resort rather than the first step. Exact, overlap, and semantic cache checks handle duplicate events cheaply, while dynamic example retrieval gives the LLM context only for truly unique logs. Claude Haiku returns structured severity plus reasoning so SMEs can act quickly, and every SME validation enriches the future few-shot dataset and cache.

4 supporting quotes
“Rather than using a large language model (LLM) to classify every log individually, the system first identifies duplicates through exact matching”article, stated
“* Stage 2: Context retrieval for unique logs – The remaining less than 1% of truly unique logs require classification.”article, stated
“Rather than using static examples, this dynamic retrieval makes sure each log receives contextually appropriate guidance for classification.”article, stated
“By providing detailed reasoning alongside each classification, Palo Alto Networks enables SMEs to quickly validate decisions and take appropriate action.”article, stated

Models used: Anthropic Claude Haiku · Amazon Titan Text Embeddings · Amazon Bedrock

Scale

Alternatives considered (roads not taken)

Classify every log entry with an LLM

Rejected because: The team needed to avoid redundant LLM calls across hundreds of millions of mostly duplicate logs.

“Rather than using a large language model (LLM) to classify every log individually, the system first identifies duplicates through exact matching, then uses overlap similarity, and finally employs semantic similarity only if no earlier match is found.”article, stated
“The caching layer enables real-time processing by reducing the need for redundant LLM invocations. * Context retrieval for unique logs – For unique logs, Anthropic’s Claude Haiku model using Amazon Bedrock classifies each log’s severity.”article, stated

Static few-shot examples

Rejected because: Dynamic retrieval provides examples tailored to each unique log and evolving pattern.

“The examples are dynamically retrieved at inference time through vector similarity search. Over time, labeled examples are added to provide rich context to the LLM for classification.”article, stated
“Rather than using static examples, this dynamic retrieval makes sure each log receives contextually appropriate guidance”article, stated

Traditional rule-based log handling alone

Rejected because: The article says evolving log patterns are difficult for traditional rules, while dynamic examples can adapt as SMEs label new cases.

“This context-aware approach improves accuracy for Palo Alto Networks’ internal logs and systems and evolving log patterns that traditional rule-based systems struggle to handle.”article, stated
“SMEs can label additional examples, and the dynamic few-shot retrieval automatically incorporates this knowledge”article, stated

Patterns

semantic-caching (retrieval)

The system uses exact, overlap, and semantic matching to reuse prior classifications for duplicate log events before invoking an LLM.

“The system first applies exact matching, then falls back to overlap similarity, and finally uses semantic similarity through Amazon Titan Text Embeddings”article, stated

rag-retrieval (retrieval)

Unique logs retrieve dynamically similar labeled historical examples to guide severity classification.

“For these entries, the system uses Amazon Titan Text Embeddings to identify the most relevant historical examples”article, stated

structured-output-contract (output-control)

Claude Haiku outputs P1/P2/P3 severity classifications plus detailed reasoning for SME action.

“The solution provides structured predictions, including severity classification (Priority 1 (P1), Priority 2 (P2), Priority 3 (P3))”article, stated

human-in-the-loop-gate (governance)

SME validations become new labeled examples and improve future classifications.

“Each validated classification becomes part of the dynamic few-shot retrieval dataset”article, stated

cost-aware-routing (operations)

The architecture routes common duplicate logs through cache and reserves LLM classification for unique logs.

“transforming expensive per-log LLM operations into a cost-effective system capable of handling 200 million daily volumes.”article, stated

Tradeoffs

Cache and deduplicate before LLM classification

Chose multi-layer caching and similarity matching over classifying every log directly.

Rationale: Most logs were duplicate events, so cache routing made real-time enterprise-scale LLM use economically viable.

“Intelligent caching enables AI at production scale”article, stated
“processes more than 99% of logs through cache hits”article, stated

Use dynamic few-shot retrieval

Chose vector-selected labeled examples over static prompt examples.

Rationale: Dynamic examples adapt to new log patterns and Palo Alto's internal systems.

“The examples are dynamically retrieved at inference time through vector similarity search.”article, stated
“This adaptability allows the system to scale with business needs.”article, stated

Return severity reasoning with every classification

Chose structured severity plus explanation over bare P1/P2/P3 labels.

Rationale: SMEs needed to quickly validate AI decisions before taking preventive action.

“The model analyzes the log content alongside relevant historical examples to produce severity classifications (P1, P2, P3) and detailed explanations.”article, stated

Gotchas (what bit them)

LLM-per-log classification is economically infeasible at this volume.

Root cause: More than 200 million daily logs contain many duplicate events with superficial timestamp, level, or wording differences.

Resolution: Use exact, overlap, and semantic cache hits before classifying only the unique remainder.

“more than 99% of logs corresponded to duplicate events, although they contained different time stamps, log levels, and phrasing.”article, stated
“The caching system reduced response times for cached results and reduced unnecessary LLM processing.”article, stated

Static examples can become stale as log patterns evolve.

Root cause: New categories and patterns appear over time in production infrastructure.

Resolution: Let SMEs label additional examples and retrieve them dynamically without code changes.

“The solution accommodates new log categories and patterns without requiring system modifications.”article, stated
“SMEs can label additional examples, and the dynamic few-shot retrieval automatically incorporates this knowledge”article, stated

SMEs need trustable explanations for critical-severity alerts.

Root cause: P1 classifications guide urgent operational action, so unexplained predictions are not enough.

Resolution: Emit detailed reasoning with each severity classification.

“SMEs responding to critical alerts require confidence in AI recommendations, particularly for P1 severity classifications.”article, stated
“Clear explanations transform AI outputs from predictions into actionable intelligence.”article, stated

Evaluation

Palo Alto evaluates the system with production-oriented precision/recall, debugging-time reduction, cache-hit rate, SME validation, and continuous improvement from newly labeled examples.

Metrics: 95% precision for P1 severity logs · 90% recall for P1 severity logs · 83% reduction in debugging time · over 99% cache hit rate · cache efficiency improvement from SME validation

3 supporting quotes
“95% precision, 90% recall for P1 severity logs – Critical alerts are accurate and actionable”article, stated
“Over 99% cache hit rate – The intelligent caching layer processes 20 million daily volume cost-effectively”article, stated
“Continuous improvement – Each SME validation automatically improves future classifications and increases cache efficiency”article, stated

Outcomes

The system is designed for more than 200 million daily logs and integrates with Palo Alto Networks' existing production log pipeline.

3 supporting quotes
“The solution achieved 95% precision in detecting production issues while reducing incident response times by 83%.”article, stated
“Over 99% cache hit rate – The intelligent caching layer processes 20 million daily volume cost-effectively through subsecond responses”article, stated
“transform reactive log monitoring into proactive issue detection.”article, stated