> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Source config def

#### Source Configuration - Source Config

The sourceConfig is defined [here](https://github.com/open-metadata/OpenMetadata/blob/main/openmetadata-spec/src/main/resources/json/schema/metadataIngestion/messagingServiceMetadataPipeline.json):

**generateSampleData:** Generate sample data during metadata extraction. Turn off to skip it.

**topicFilterPattern:** Note that the `topicFilterPattern` supports regex as include or exclude.

**generateSampleData:** Generate sample data during metadata extraction. Turn off to skip it. `generateSampleData` supports boolean value either `true` or `false`.

**markDeletedTopics:** Optional configuration to soft delete topics in Collate if the source topics are deleted. Also, if the topic is deleted, all the associated entities like sample data, lineage, etc., with that topic will be deleted. `markDeletedTopics` supports boolean value either `true` or `false`.

**overrideMetadata:** Set the 'Override Metadata' toggle to control whether to override the existing metadata in the Collate server with the metadata fetched from the source. If the toggle is set to true, the metadata fetched from the source will override the existing metadata in the Collate server. If the toggle is set to false, the metadata fetched from the source will not override the existing metadata in the Collate server. This is applicable for fields like description, tags, owner and displayName. `overrideMetadata` supports boolean value either `true` or `false`.

> [!WARNING]
>
> **Topic filters do not protect topics from Mark Deleted Topics.**
>
> A topic that your Topic Filter Pattern leaves out (excluded, or not matched by an include rule) is skipped during ingestion, so the agent never sees it. If **Mark Deleted Topics** is on (the default), Collate soft-deletes every topic in the messaging service that this run did not ingest. This includes topics you created in the same service through the API.
>
> To avoid this, do one of the following:
>
> * Turn **Mark Deleted Topics** off (`markDeletedTopics: false` in YAML). Topics removed from the source are then no longer cleaned up automatically.
> * Keep topics you manage through the API in a separate messaging service from the one this agent ingests.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.