2023-04-25 16:58:47 +02:00
---
title: databaseServiceQueryUsagePipeline
slug: /main-concepts/metadata-standard/schemas/metadataingestion/databaseservicequeryusagepipeline
---
# DatabaseServiceQueryUsagePipeline
*DatabaseService Query Usage Pipeline Configuration.*
## Properties
2025-01-15 17:46:55 +05:30
- **`type` **: Pipeline type. Refer to *[#/definitions/databaseUsageConfigType](#definitions/databaseUsageConfigType)* . Default: `"DatabaseUsage"` .
2023-04-25 16:58:47 +02:00
- **`queryLogDuration` ** *(integer)* : Configuration to tune how far we want to look back in query logs to process usage data. Default: `1` .
2025-01-15 17:46:55 +05:30
- **`stageFileLocation` ** *(string)* : Temporary file name to store the query logs before processing. Absolute file path required. Default: `"/tmp/query_log"` .
2023-10-28 00:07:31 +05:30
- **`filterCondition` ** *(string)* : Configuration the condition to filter the query history.
2023-08-27 10:55:55 +02:00
- **`resultLimit` ** *(integer)* : Configuration to set the limit for query logs. Default: `1000` .
2023-04-25 16:58:47 +02:00
- **`queryLogFilePath` ** *(string)* : Configuration to set the file path for query logs.
## Definitions
2025-01-15 17:46:55 +05:30
- **`databaseUsageConfigType` ** *(string)* : Database Source Config Usage Pipeline type. Must be one of: `["DatabaseUsage"]` . Default: `"DatabaseUsage"` .
2023-04-25 16:58:47 +02:00
2025-01-15 17:46:55 +05:30
Documentation file automatically generated at 2025-01-15 09:05:41.923720+00:00.