---
title: Bedrock knowledge bases should deliver ingestion logs
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Bedrock knowledge bases should deliver
  ingestion logs
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Bedrock knowledge bases should deliver ingestion logs
 
## Description{% #description %}

Amazon Bedrock vector knowledge bases should deliver their ingestion logs to a durable destination through CloudWatch Logs vended log delivery. Ingestion logs are the only record of which documents were added, updated, deleted, or failed to index on each sync, and are needed to detect poisoned or silently dropped content. A knowledge base passes when an `APPLICATION_LOGS` delivery source is bound to its ARN and paired with a delivery to a non-empty destination in the same account and Region. Knowledge bases with a structured data store (`SQL`) or a Kendra GenAI index (`KENDRA`) are skipped, because AWS does not support log delivery for them, and a knowledge base whose type is not collected fails.

## Remediation{% #remediation %}

To deliver ingestion logs, follow [Monitor knowledge bases using CloudWatch Logs](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-bases-logging.html):

1. Create a delivery source for the knowledge base with the `APPLICATION_LOGS` log type.
1. Register a CloudWatch Logs, Amazon S3, or Amazon Data Firehose delivery destination.
1. Pair the delivery source and destination with a delivery.

For the underlying API calls, see [PutDeliverySource](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html).

## References{% #references %}

- [Monitor knowledge bases using CloudWatch Logs](https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-bases-logging.html)
- [PutDeliverySource API reference](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_PutDeliverySource.html)
- [CIS Amazon Web Services Benchmarks](https://www.cisecurity.org/benchmark/amazon_web_services)
