Looker admins and users who have been granted the see_system_activity
permission have access to an instance’s Usage panel, which connects directly to Looker’s underlying application database, called i__looker
. The i__looker
database stores information about your Looker instance, including all Looks and dashboards saved on your instance, user information, and 90 days of historical queries:
This page describes the most commonly used Explores in i__looker
and gives some examples of common uses. This functionality can be useful for auditing and monitoring purposes.
SQL text, and the text in filters run by users, is accessible in
i__looker
and can be viewed by any user who has permission to view thei__looker
model.Take action: Modify who has view access to the
i__looker
model. Looker admins have access toi__looker
by default. Non-admin users can be granted access toi__looker
if they are given thesee_system_activity
permission.Chat Team Tip: Time-based data in
i__looker
is stored in the Looker System time zone. See the Using Time Zone Settings page for more information.
History Explore
The History Explore includes information about each query run on your Looker instance in the last 90 days.
You can access the History Explore at the following URL, replacing <instance_name.looker.com>
with the address of your Looker instance:
https://<instance_name.looker.com>/explore/i__looker/history
The History Explore can be used as a more detailed version of the Queries panel on the Admin page. It has all the information on the Queries panel, but it goes back further than the latest 50 queries and has more information about users, roles, groups, etc.
What the History Explore is not
The History Explore includes views titled Look, Dashboard, and User. These views do not list all the Looks, dashboards, and users on your instance. Rather, these views list the Looks, dashboards, and users that have been accessed or active within the last 90 days. To view comprehensive lists of Looks, dashboards, or users, use the Explores described later in this page.
Truncation of the History table
Because the size of the History table can increase rapidly, Looker automatically deletes records that meet any of the following criteria:
- The
history.created_time
is more than 90 days in the past. - The
history.created_time
is more than 7 days in the past, and thehistory.source
isscheduled_task
.
Useful fields in the History Explore
There are a lot of fields in the History Explore. Here are some of the most commonly used fields:
history.source
: The source of a query, such as a Saved Look, Dashboard, Explore, Scheduled Task, API, etc.history.created_time
: The date and time an event in the History Explore was created. Each event is linked to a query in Looker. Queries come from the Explore page, dashboards, Looks, API calls, and scheduled events.history.result_source
: Whether the results of a query were returned from the cache, or from the database as a fresh query.history.runtime_in_seconds
: The time a query took to run. This includes the construction of the query, any time the query spent in the queue, transit to and from the database, and database execution of the query.query.model
: The LookML model associated with a query.query.explore
: The LookML explore associated with a query.query.sql_text
: The actual SQL that was run for a query.
Examples
Below are some common uses of the History Explore. Note that you must replace <instance_name.looker.com>
at the beginning of the URL with the address of your Looker instance for these links to work.
What is the average runtime for different models on my instance?
This Explore lists each model that was queried in the last 90 days, and shows the average runtime for queries based on those models during the previous 90 days:
https://<instance_name.looker.com>/explore/i__looker/history?fields=query.model,history.average_runtime&f[history.result_source]=query&sorts=history.average_runtime+desc&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22history.result_source%22%3A%5B%7B%22type%22%3A%22%3D%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22query%22%7D%2C%7B%7D%5D%2C%22id%22%3A0%2C%22error%22%3Afalse%7D%5D%7D&origin=share-expanded
What is the most popular dashboard by query count?
This Explore lists the titles of every dashboard accessed in the last 90 days, and a count of the number of times each of those dashboards was accessed:
https://<instance_name.looker.com>/explore/i__looker/history?fields=dashboard.title,history.query_run_count&f[dashboard.title]=-NULL&sorts=history.query_run_count+desc&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22dashboard.title%22%3A%5B%7B%22type%22%3A%22%21null%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22%22%7D%2C%7B%7D%5D%2C%22id%22%3A0%2C%22error%22%3Afalse%7D%5D%7D&origin=share-expanded
Which Explores are most popular with different roles?
This Explore shows how many times an Explore was run by each role on your instance in the previous 90 days:
https://<instance_name.looker.com>/explore/i__looker/history?fields=history.query_run_count,query.view,role.name&pivots=role.name&f[role.name]=-NULL&sorts=history.query_run_count+desc+0&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22role.name%22%3A%5B%7B%22type%22%3A%22%21null%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22%22%7D%2C%7B%7D%5D%2C%22id%22%3A1%2C%22error%22%3Afalse%7D%5D%7D&origin=share-expanded
Has anyone queried a specific Explore in the last 90 days?
You can use the History Explore to determine if a specific Explore was used in the last 90 days:
- Select the fields
history.created_date
,query.explore
, andquery.link
. - Filter on
query.explore
, entering the name of the Explore. - Click Run.
Has anyone used a field from a specific view in the last 90 days?
You can use the History Explore to determine if any fields from a specific view were used in the last 90 days:
- Select the fields
history.created_date
,query.explore
, andquery.link
. - Filter on
query.fields_used
, entering the name of the view followed by a period, such asorders.
, and selecting contains for the filter condition. The period in your filter will ensure that you only return fields from that view, and not fields from similarly named views. - Click Run.
Look Explore
The Look Explore includes information about all saved Looks on your Looker instance, such as:
- Who created the Looks and when they were created
- The fields that make up a Look
- The folders where the Looks are stored
You can access the Look Explore at the following URL, replacing <instance_name.looker.com>
with the address of your Looker instance:
https://<instance_name.looker.com>/explore/i__looker/look
Useful fields in the Look Explore
Some of the most commonly used fields in the Look Explore are:
look.created_date
: The date a Look was created.look.deleted_date
: The date a Look was deleted. If the Look has not been deleted, this field will be NULL.look.public
: Whether or not the Look has been made public.look.public_slug
: The hash portion of the Look URL.query.link
: A link to the Explore underlying the Look.space.name
: The name of the folder where a Look is stored.
Examples
Below are some common uses of the Look Explore. Note that you must replace <instance_name.looker.com>
at the beginning of the URL with the address of your Looker instance for these links to work.
How many public Looks are there?
This Explore lists all the Looks on your instance that have been made public:
https://<instance_name.looker.com>/explore/i__looker/look?fields=look.id,look.title,look.link&f[look.public]=Yes&sorts=look.title&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22look.public%22%3A%5B%7B%22type%22%3A%22is%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22Yes%22%7D%2C%7B%7D%5D%2C%22id%22%3A0%7D%5D%7D&dynamic_fields=%5B%5D&origin=share-expanded
Which Looks have been deleted?
This Explore lists all the Looks that have been deleted:
https://<instance_name.looker.com>/explore/i__looker/look?fields=look.id,look.title,look.link,look.deleted_date&f[look.deleted_date]=NOT+NULL&sorts=look.title&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22look.deleted_date%22%3A%5B%7B%22type%22%3A%22%21null%22%2C%22values%22%3A%5B%7B%22constant%22%3A%227%22%2C%22unit%22%3A%22day%22%7D%2C%7B%7D%5D%2C%22id%22%3A1%2C%22error%22%3Afalse%7D%5D%7D&dynamic_fields=%5B%5D&origin=share-expanded
Which folders are my Looks saved in?
This Explore lists all of your Looks, sorted by the folder that they are stored in:
https://<instance_name.looker.com>/explore/i__looker/look?fields=space.name,look.id,look.title,look.link&f[look.deleted_date]=NOT+NULL&sorts=space.name+desc&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22look.deleted_date%22%3A%5B%7B%22type%22%3A%22%21null%22%2C%22values%22%3A%5B%7B%22constant%22%3A%227%22%2C%22unit%22%3A%22day%22%7D%2C%7B%7D%5D%2C%22id%22%3A1%2C%22error%22%3Afalse%7D%5D%7D&dynamic_fields=%5B%5D&origin=share-expanded
Dashboard Explore
The Dashboard Explore includes information about every dashboard saved on your Looker instance. Similar to the Look Explore, you can find information about your dashboards such as who created them, when they were created, and which folder they reside in. You can also find information about the dashboard settings and elements.
You can access the dashboard Explore at the following URL, replacing <instance_name.looker.com>
with the address of your Looker instance:
https://<instance_name.looker.com>/explore/i__looker/dashboard
Useful fields in the Dashboard Explore
The Dashboard Explore has similar fields to the Look Explore. In addition to those fields, here are some fields that are unique to the Dashboard Explore that are commonly used:
dashboard.refresh_interval
: If Auto-Refresh is enabled on the dashboard, how often the dashboard will refresh.dashboard.run_on_load
: Whether Run on Load is enabled on the dashboard.
Examples
Below are some common uses of the Dashboard Explore. Note that you must replace <instance_name.looker.com>
at the beginning of the URL with the address of your Looker instance for these links to work.
How many dashboards run on load?
This Explore shows a count of how many dashboards in your instance are configured to Run on Load:
https://<instance_name.looker.com>/explore/i__looker/dashboard?fields=dashboard.count&f[dashboard.run_on_load]=Yes&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22dashboard.run_on_load%22%3A%5B%7B%22type%22%3A%22is%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22Yes%22%7D%2C%7B%7D%5D%2C%22id%22%3A1%7D%5D%7D&origin=share-expanded
How many frequently refreshed dashboards are there?
Similar to Run on Load, the Auto-Refresh setting can affect Looker performance if you have a large number of dashboards that auto-refresh frequently. This Explore shows the number of dashboards that are set to auto-refresh, and how many refresh at each time interval:
https://<instance_name.looker.com>/explore/i__looker/dashboard?fields=dashboard.refresh_interval,dashboard.count&f[dashboard.refresh_interval]=-NULL&sorts=dashboard.count+desc&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22dashboard.refresh_interval%22%3A%5B%7B%22type%22%3A%22%21null%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22%22%7D%2C%7B%7D%5D%2C%22id%22%3A0%2C%22error%22%3Afalse%7D%5D%7D&origin=share-expanded
User Explore
The User Explore includes information about every user on your Looker instance. It includes information such as:
User API credentials
User groups
Roles, permissions and permission sets assigned to users
User details and settings such as name, ID, and whether the user is enabled on the instance
You can access the User Explore at the following URL, replacing <instance_name.looker.com>
with the address of your Looker instance:
https://<instance_name.looker.com>/explore/i__looker/user
Useful fields in the User Explore
Some of the commonly used fields in the User Explore are:
group.name
: The name of a group that a user is part ofpermission_set.permissions
: The list of permissions granted to a userrole.name
: The role assigned to a useruser.dev_mode
: Whether the user is currently in Development Modeuser.is_disabled
: Whether a user has been disabled on the Looker instanceuser.edit_link
: A link to the page in Looker where you can edit the user informationrole.edit_link
: A link to the page in Looker where you can edit the role information assigned to the usergroup.edit_link
: A link to the page in Looker where you can edit the set of groups a user has
Examples
Below are some common uses of the User Explore. Note that you must replace <instance_name.looker.com>
at the beginning of the URL with the address of your Looker instance for these links to work.
Which users have had access disabled?
This Explore lists all users whose access has been disabled:
https://<instance_name.looker.com>/explore/i__looker/user?fields=user.name&f[user.is_disabled]=Yes&sorts=user.name&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22user.is_disabled%22%3A%5B%7B%22type%22%3A%22is%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22Yes%22%7D%2C%7B%7D%5D%2C%22id%22%3A1%7D%5D%7D&origin=share-expanded
Which users have a specific permission?
This Explore lists all the users on your instance who have the develop
permission:
https://<instance_name.looker.com>/explore/i__looker/user?fields=user.name&f[permission_set.permissions]=%25develop%25&sorts=user.name&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22permission_set.permissions%22%3A%5B%7B%22type%22%3A%22contains%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22develop%22%7D%2C%7B%7D%5D%2C%22id%22%3A0%2C%22error%22%3Afalse%7D%5D%7D&origin=share-expanded
How many users are there in each role on my instance?
This Explore counts the number of active users in each role on the instance. Note that a user can have more than one role assigned. For example, if a user was assigned both the “developer” role and the “admin” role, that user would be counted twice:
https://<instance_name.looker.com>/explore/i__looker/user?fields=role.name,user.count&f[user.is_disabled]=No&sorts=user.count+desc&limit=500&column_limit=50&query_timezone=America%2FLos_Angeles&vis=%7B%7D&filter_config=%7B%22user.is_disabled%22%3A%5B%7B%22type%22%3A%22is%22%2C%22values%22%3A%5B%7B%22constant%22%3A%22No%22%7D%2C%7B%7D%5D%2C%22id%22%3A2%2C%22error%22%3Afalse%7D%5D%7D&origin=share-expanded