---
title: Store decrypted matched payloads in logs · Cloudflare Web Application Firewall (WAF) docs
description: You can include the encrypted matched payload in your Logpush jobs by adding the General > Metadata field from the Firewall Events dataset to your job.
lastUpdated: 2024-08-13T19:56:56.000Z
source_url:
  html: https://a74404c8.preview.developers.cloudflare.com/waf/managed-rules/payload-logging/decrypt-in-logs/index.md
  md: https://a74404c8.preview.developers.cloudflare.com/waf/managed-rules/payload-logging/decrypt-in-logs/
---

You can include the encrypted matched payload in your [Logpush](https://developers.cloudflare.com/logs/about/) jobs by adding the **General** > [**Metadata**](https://developers.cloudflare.com/logs/reference/log-fields/zone/firewall_events/#metadata) field from the Firewall Events dataset to your job.

The payload, in its encrypted form, is available in the `encrypted_matched_data` property of the `Metadata` field.

However, you may want to decrypt the matched payload before storing the logs in your SIEM system of choice. Cloudflare provides a [sample Worker project](https://github.com/cloudflare/matched-data-worker) on GitHub that does the following:

1. Behaves as an S3-compatible storage to receive logs from Logpush. These logs will contain encrypted matched payload data.
2. Decrypts matched payload data using your private key.
3. Sends the logs to the final log storage system with decrypted payload data.

You will need to make some changes to the sample project to push the logs containing decrypted payload data to your log storage system.

Refer to the Worker project's [README](https://github.com/cloudflare/matched-data-worker/blob/main/README.md) for more information on configuring and deploying this Worker project.
