:doc:`PrometheusService <../../amp>` / Client / update_query_logging_configuration

**********************************
update_query_logging_configuration
**********************************



.. py:method:: PrometheusService.Client.update_query_logging_configuration(**kwargs)

  

  Updates the query logging configuration for the specified workspace.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateQueryLoggingConfiguration>`_  


  **Request Syntax**
  ::

    response = client.update_query_logging_configuration(
        workspaceId='string',
        destinations=[
            {
                'cloudWatchLogs': {
                    'logGroupArn': 'string'
                },
                'filters': {
                    'qspThreshold': 123
                }
            },
        ],
        clientToken='string'
    )
    
  :type workspaceId: string
  :param workspaceId: **[REQUIRED]** 

    The ID of the workspace for which to update the query logging configuration.

    

  
  :type destinations: list
  :param destinations: **[REQUIRED]** 

    The destinations where query logs will be sent. Only CloudWatch Logs destination is supported. The list must contain exactly one element.

    

  
    - *(dict) --* 

      Defines a destination and its associated filtering criteria for query logging.

      

    
      - **cloudWatchLogs** *(dict) --* **[REQUIRED]** 

        Configuration details for logging to CloudWatch Logs.

        

      
        - **logGroupArn** *(string) --* **[REQUIRED]** 

          The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist prior to calling this operation.

          

        
      
      - **filters** *(dict) --* **[REQUIRED]** 

        Filtering criteria that determine which queries are logged.

        

      
        - **qspThreshold** *(integer) --* **[REQUIRED]** 

          The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing more samples than this threshold will be captured in logs.

          

        
      
    

  :type clientToken: string
  :param clientToken: 

    (Optional) A unique, case-sensitive identifier that you can provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'status': {
              'statusCode': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING'|'CREATION_FAILED'|'UPDATE_FAILED',
              'statusReason': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **status** *(dict) --* 

        The current status of the query logging configuration.

        
        

        - **statusCode** *(string) --* 

          The current status of the query logging configuration.

          
        

        - **statusReason** *(string) --* 

          If there is a failure, the reason for the failure.

          
    
  
  **Exceptions**
  
  *   :py:class:`PrometheusService.Client.exceptions.ConflictException`

  
  *   :py:class:`PrometheusService.Client.exceptions.ValidationException`

  
  *   :py:class:`PrometheusService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`PrometheusService.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`PrometheusService.Client.exceptions.InternalServerException`

  