Package Usage Logs Schema

Make informed development decisions based on package usage log data. Analyze adoption, user behavior, company information, and Lightning app and page usage data. Package usage logs list activity during a 24-hour period, between 12:00 AM and 11:59 PM UTC.

FieldDescription
api_typeThe type of API request. Examples:
  • BULK_API
  • E: SOAP Enterprise
  • P: SOAP Partner
  • REST
api_versionThe version of the API that’s used. Example: 45.0.
app_nameThe name of the Lightning application the user accessed. Examples:
  • one:one
  • FieldServiceApp
  • Chatter
bulk_batch_idThe batch ID for the Bulk API job.
bulk_job_idThe ID for the Bulk API job.
bulk_operationThe operation for the Bulk API job. Examples:
  • delete
  • hardDelete
  • insert
  • query
  • queryAll
  • update
  • upsert
class_nameThe name of the Apex class. Examples:
  • Help_HomeController
  • ROAppController_v2
  • FSL
cloned_from_organization_idThe ID of the org from which this subscriber org was cloned. Applies to sandbox orgs only. Example: 00Dxx0000000000
custom_entityThe developer name of the component or custom object.
custom_entity_typeThe type of component or custom object that the user viewed or manipulated. Examples:
  • AnalyticsDashboard
  • AnalyticsLens
  • AnalyticsRecipe
  • ApexClass
  • ApexTrigger
  • CustomInteractionFailure
  • CustomInteractionLabel
  • CustomObject
  • ExternalObject
  • LightningComponent
  • LightningPage
  • VisualforcePage
entry_pointThe entry point of the executed Apex event.
  • GeneralCloner.cloneAndInsertRecords
  • VF- /apex/CloneUser
eventThe name or ID of the platform event. Examples:
  • /event/011xx0000005akx
  • SomeCustomEvent
event_countThe number of platform events consumed by the subscriber. Example: 2.
event_subscriberThe ID of the platform event subscriber. Example: 01qxx0000004Coy.
http_methodThe type of HTTP request method. Example: GET.
http_status_codeThe HTTP response status code. Example: 404.
interaction_id_tokenA hashed token representing the interaction ID provided when the custom interaction was logged. In compliance with privacy regulations, Salesforce can’t store an actual user interaction ID.
line_numberThe line number in the Apex file.
login_keyThe hashed string that ties together all events in a given user’s login session. The session starts with a login event and ends with either a logout event or the session expiring. All log lines with the same login key occurred during the same user login session.
log_record_typeType of log record. Examples:
  • AnalyticsAssetView
  • AnalyticsAssetRun
  • API
  • ApexExecution
  • ApexRestApi
  • ApexSoap
  • ApexUnexpectedException
  • BulkApiV1
  • BulkApiV2
  • CronJob
  • CustomInteraction
  • LightningInteraction
  • LightningPageView
  • PlatformEventConsumer
  • QueuedExec
  • RestApi
  • UnassociatedCRUD
  • URI
  • VFRemoting
  • VisualforceRequest
A log_record_type value of UnassociatedCRUD is assigned when a create, read, update, or delete (CRUD) event occurs on a custom object that isn’t associated with a log record type that App Analytics captures or that is associated with unknown log records.
managed_package_namespaceNamespace of the package.
method_nameThe name of the Apex method. Examples:
  • getUserAccessLevelBean
  • getCurrentDocumentsRates
  • getAdditionalHelpTemplate
num_fieldsThe number of fields accessed by the user in this transaction.
num_soql_queriesThe number of SOQL queries completed during the executed Apex event.
operation_countThe definition of operation_count depends on the operation_type performed.
  • When operation_type is INSERT, READ,UPDATE, or DELETE, operation_count is the number of records associated with the custom_entity affected by the operation in this transaction.
  • When operation_type is SOQL_QUERY, operation_count is the number of SOQL queries associated with the custom_entity performed in this transaction.
  • When operation_type is SOSL_QUERY, operation_count is the number of SOSL queries associated with the custom_entity performed in this transaction.
operation_typeThe operation performed on the component or custom object. Examples:
  • INSERT
  • READ
  • UPDATE
  • DELETE
  • SOSL_QUERY
  • SOQL_QUERY
organization_country_codeThe ISO-3166 two-character country code corresponding to the subscriber org’s address at the time of sign-up. Examples:
  • US
  • CA
  • FR
organization_editionThe name of the Salesforce edition the subscriber org is using. Examples:
  • Developer Edition
  • Enterprise Edition
  • Unlimited Edition
organization_idThe 15-character ID of the subscriber org.
organization_instanceThe name of the subscriber org’s instance. Examples:
  • AP2
  • EU7
  • NA44
organization_language_localeThe 2–5 character code that represents the language and locale ISO-639 code of the subscriber org. This code controls the language for the labels displayed in an application. Examples:
  • de-DE
  • en-US
  • fr-CA
organization_nameThe name of the subscriber org. Example: Acme, Inc.
organization_statusThe paid status of the subscriber org. Examples:
  • Active
  • Demo
  • Free
  • Trial
organization_time_zoneThe default time zone of the subscriber org. Examples:
  • America/New York
  • America/Los Angeles
  • Europe/Paris
organization_typeThe subscriber org environment type. Examples:
  • Production
  • Sandbox
package_idThe ID of the package.
package_version_idThe ID of the package version.
page_app_nameThe internal name of the Lightning application that the user accessed from the App Launcher. Examples:
  • LightningSales
  • Chatter
page_contextThe context of the Lightning page where the event occurred. Example: clients:cardContainer.
page_entity_typeThe Lightning entity type of the event. Examples:
  • Contact
  • Task
page_urlThe relative URL of the top-level Lightning Experience or Salesforce mobile app page that the user accessed. The page can contain one or more Lightning components. Multiple record IDs can be associated with page_url. Example: /sObject/0064100000JXITSASS/view
parent_ui_elementThe parent scope of the Lightning page element where the event occurred. Example: ChatterFeed.
prevpage_urlThe relative URL of the previous Lightning Experience or Salesforce mobile app page that the user opened. Example: /sObject/0064100000
quiddityThe type of outer execution associated with the executed Apex event. Examples:
  • A: QueryLocator Batch Apex
  • B: Bulk API and Bulk API 2.0
  • BA: Batch Apex
  • C: Scheduled Apex
  • E: Inbound Email Service
  • F: Future
  • H: Apex REST
  • I: Invocable Action
  • K: Quick Action
  • L: Lightning
  • M: Remote Action
  • Q: Queuable
  • R: Synchronous Uncategorized
  • S: Serial Batch Apex
  • TA: Tests Async
  • TD: Tests Deployment
  • TS: Tests Synchronous
  • V: Visualforce
  • W: SOAP Webservices
  • X: Execute Anonymous
referrer_uriThe referring URI from the HTTP request. URIs are redacted in these ways.
  • Query strings are removed.
  • User IDs display as hashed tokens.
  • Subscriber-created URIs, such as VisualForce pages, are removed.
related_listA section of a record or other detail page that lists items related to that record. Examples:
  • Open Activities
  • Stage History
request_idThe ID of the HTTP request made to the server by the browser. If multiple log lines have the same request ID, they all occurred as part of the same user interaction.
request_sizeThe size of the callout request body in bytes.
request_statusThe status of the HTTP request for the page or action that accesses a component or custom object in a package. Examples:
  • A = Auth Error
  • F = Failure
  • N = 404 error
  • R = Redirect
  • S = Success
  • U = Undefined
response_sizeThe size of the callout response in bytes.
rows_processedThe number of rows that were processed in the request.
session_keyThe HTTP session ID for the HTTP request to access a component or custom object in a package. The session ID is hashed.
stack_traceThe stack trace associated with the Apex exception.
target_ui_elementThe Lightning target page element where the event occurred. Examples:
  • label body truncate
  • tabitem-link
timestamp_derivedThe access time of a component or custom object in a package in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ). Example: 2018-07-27T11:32:59.555Z.
ui_event_sequence_numAn auto-incremented sequence number of the current Lightning event since the session started.
ui_event_sourceThe user action on the Lightning record or records. This value indicates whether the user’s action was on a single record or multiple records. For example, read indicates that one record was read, such as on a record detail page. In contrast, reads indicates that multiple records were read, such as in a list view. Examples:
  • click
  • create
  • delete
  • hover
  • read
  • update
ui_event_typeThe type of Lightning event. Examples:
  • crud
  • system
  • user
urlThe redacted URL of the request to access a component or custom object in a package. URLs are redacted in these ways.
  • Query strings are removed.
  • User IDs display as hashed tokens.
  • Subscriber-created URIs, such as VisualForce pages, are removed.
For Lightning-based URLs, only /aura is displayed. For Visualforce-based URLs that aren’t pages owned by the managed package, either /apex or /apexrest is displayed.
user_agentThe browser and operating system of the device used to make the request. Examples:
  • Mozilla/5.0 (iPhone; CPU iPhone // 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/605.1
  • Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
user_country_codeThe default ISO-3166 two-character country code of the user. Examples:
  • CA
  • FR
  • US
user_id_tokenThe hashed token representing the ID of the user who accessed the package. The ID persists, even if a user’s details change. The token also persists across any packages that the user interacts with. The user ID token starts with the prefix 005-. In compliance with privacy regulations, our systems can’t access the actual user ID. Likewise, the hashed token can’t be linked to the user ID.
user_time_zoneThe default time zone of the user. Example: America/New_York.
user_typeThe user license category of the user accessing Salesforce services through the UI or API. Examples:
  • Guest
  • Partner
  • Standard