Views:
TypeRead/writeAuthorAvailability
Data providerReadFinbourneProvided with LUSID

The Sys.Logs.HcProvider provider enables you to write a Luminesce SQL query that retrieves Luminesce query logs for a provider run.

Note: The LUSID user running the query must have sufficient access control permissions 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.HcQuery, Sys.Logs.HcQueryError, Sys.Logs.HcQueryStart 

Basic usage

select * from Sys.Logs.HcProvider where <filter-expression>;

Query parameters

Sys.Logs.HcProvider 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:

select FieldName, DataType, ParamDefaultValue, Description from Sys.Field where TableName = 'Sys.Logs.HcProvider' and FieldType = 'Parameter';

Data fields

By default, Sys.Logs.HcProvider 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:

select FieldName, DataType, IsMain, IsPrimaryKey, SampleValues, Description from Sys.Field where TableName = 'Sys.Logs.HcProvider' and FieldType = 'Column';

Note: Fields marked 'main' are returned by queries that include a caret character, for example select ^ from Sys.Logs.HcProvider.

Examples

Note: For more example Luminesce SQL queries, visit our Github repo.

Example 1: Retrieve first 10 logs

select * from Sys.Logs.HcProvider limit 10

Example 2: Retrieve logs for a particular provider

select * from Sys.Logs.HcProvider where Provider = 'Drive.File.Operation'

Example 3: See how many times each provider has been called

select Provider, count(*) as NumberOfTimesCalled 
from Sys.Logs.HcProvider 
where StartAt = #2024-01-01# 
  and ShowAll = 1
group by Provider
order by NumberOfTimesCalled desc