--- title: "Sys.Logs.HcQueryStart" slug: "syslogshcquerystart" tags: ["luminesce ", "provider", "logs"] updated: 2024-08-21T07:24:57Z published: 2024-08-21T07:24:57Z canonical: "support.lusid.com/syslogshcquerystart" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.lusid.com/llms.txt > Use this file to discover all available pages before exploring further. # Sys.Logs.HcQueryStart | **Type** | **Read/write** | **Author** | **Availability** | | --- | --- | --- | --- | | [Data provider](/v1/docs/what-are-a-data-provider-and-a-direct-provider) | Read | Finbourne | Provided with LUSID | The `Sys.Logs.HcQueryStart` provider enables you to write a [Luminesce SQL query](/v1/docs/understanding-the-luminesce-sql-query-syntax) that retrieves Luminesce query logs for one or more queries that have been requested to run, prior to being executed. > **Note:** The LUSID user running the query must have sufficient [access control permissions](/v1/docs/creating-policies-to-control-access-to-providers-for-different-luminesce-end-users) to both use the provider *and* read Luminesce query logs. This should automatically be the case if you are the domain owner. **See also:** [Sys.Logs.HcQueryError](/v1/docs/syslogshcqueryerror), [Sys.Logs.HcQuery](/v1/docs/syslogshcquery), [Sys.Logs.HcProvider](/v1/docs/syslogshcprovider) ## Basic usage ```sql select * from Sys.Logs.HcQueryStart where ; ``` ## Query parameters `Sys.Logs.HcQueryStart` has parameters that enable you to filter or refine a query. To list available parameters, their data types, default values, and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries): ```sql select FieldName, DataType, ParamDefaultValue, Description from Sys.Field where TableName = 'Sys.Logs.HcQueryStart' and FieldType = 'Parameter'; ``` ## Data fields By default, `Sys.Logs.HcQueryStart` returns a table of data populated with particular fields (columns). You can return a subset of these fields. To list fields available to return, their data types, whether fields are considered 'main', and an explanation for each, run the following query using a [suitable tool](/v1/docs/what-tools-are-available-to-write-luminesce-queries): ```sql select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Sys.Logs.HcQueryStart' and FieldType = 'Column'; ``` > **Note:** Fields marked 'main' are returned by queries that include a caret character, for example `select ^ from Sys.Logs.HcQueryStart`. ## Examples > **Note:** For more example Luminesce SQL queries, visit our [Github repo](https://github.com/finbourne/luminesce-examples/tree/master/examples). ### Example 1: Retrieve first 10 logs ```sql select * from Sys.Logs.HcQueryStart limit 10 ``` ### Example 2: Retrieve all logs for a particular query name In this example, `Sys.Logs.HcQueryStart` is used to retrieve Luminesce query logs for when a Luminesce view inside a worker in the Workflow Service ([created in this tutorial](/v1/docs/setting-up-a-data-quality-control-to-check-new-pricing-data-for-outliers)) is kicked off. ```sql select * from Sys.Logs.HcQueryStart where QueryName like '%Worker.QuoteOutliers.ImportQuotesFromCsv%' ``` ### Example 3: Retrieve query runs requested by a particular user ```sql select Sql, At from Sys.Logs.HcQueryStart where UserId = '00upmxi6ctvznOOXU2p7' ```