---
title: "WAF - Updated prompt logging for AI Security for Apps — Cloud Changelog"
description: "To log prompt content for AI Security for Apps, configure payload logging and use a WAF custom rule that references a field with the cf.llm.prompt prefix.…"
url: "https://cloudchangelog.com/cloudflare/2026-11-24-ai-security-prompt-logging"
updated: "2026-11-24"
---

[Back to feed](https://cloudchangelog.com/feed/2026-W48)

November 24, 2026 · Cloudflare

# WAF - Updated prompt logging for AI Security for Apps

- [WAF](https://cloudchangelog.com/products/cloudflare/waf)
- [Security, identity and compliance](https://cloudchangelog.com/search?q=security)

To log prompt content for AI Security for Apps, configure [payload logging](https://developers.cloudflare.com/waf/payload-logging/configure-api/) and use a WAF custom rule that references a field with the `cf.llm.prompt` prefix.

When a custom rule matches, payload logging stores the extracted prompt. If no prompt is extracted and analysis falls back to the full request body, payload logging stores the full request body.

This workflow replaces the previous AI Security Log Mode Ruleset procedure. For more information, refer to [Log prompts for matching rules](https://developers.cloudflare.com/waf/detections/ai-security-for-apps/get-started/#7-optional-log-prompts-for-matching-rules).

Get the week’s Cloudflare changes in one email

Your email address

Free, every Monday: only what changed in Cloudflare that week. We email you a link to confirm.

[See last week’s digest](https://cloudchangelog.com/digests/weekly-2026-W47#provider-cloudflare)

Free. Unsubscribe any time.

[Read on developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-11-24-ai-security-prompt-logging/)

## Related updates

- Sep 1, 2026

  [WAF - Updated PII detection for AI Security for Apps](https://cloudchangelog.com/cloudflare/2026-09-01-ai-security-for-apps-pii-detection)
- Oct 7, 2026

  [WAF - Updated unsafe topic detection for AI Security for Apps](https://cloudchangelog.com/cloudflare/2026-10-07-ai-security-for-apps-unsafe-topic-detection)
- May 8, 2025

  [WAF - Improved Payload Logging for WAF Managed Rules](https://cloudchangelog.com/cloudflare/2025-05-08-improved-payload-logging)
- Nov 12, 2026

  [WAF - Payload logging for WAF custom rules](https://cloudchangelog.com/cloudflare/2026-11-12-custom-rules-payload-logging)

[All WAF changes](https://cloudchangelog.com/products/cloudflare/waf)

## Contact

- [YouTube](https://www.youtube.com/@cloudchangelog)
