2023-04-25 16:58:47 +02:00
---
2025-08-12 13:29:42 +05:30
title: databaseServiceQueryUsagePipeline
2023-04-25 16:58:47 +02:00
slug: /main-concepts/metadata-standard/schemas/metadataingestion/databaseservicequeryusagepipeline
---
# DatabaseServiceQueryUsagePipeline
*DatabaseService Query Usage Pipeline Configuration.*
## Properties
2025-08-12 13:29:42 +05:30
- **`type` **: Pipeline type. Refer to *#/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-08-12 13:29:42 +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.
2025-08-12 13:29:42 +05:30
- **`processQueryCostAnalysis` ** *(boolean)* : Configuration to process query cost. Default: `True` .
2023-04-25 16:58:47 +02:00
## Definitions
2025-08-12 13:29:42 +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-08-12 13:29:42 +05:30
Documentation file automatically generated at 2025-08-12 05:39:47.683420+00:00.