---
schema_version: "1"
id: 11ccf12230b61fe7c44f5a65069e48fcdace538541ca6dce23f02f04b2bb78dc
title: Lightning Logger Event Type
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_eventlogfile_lightninglogger.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventlogfile_lightninglogger.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 98c6d988e2be732fe259ba8ebfc01044951112bcb789f65c32c0e9cac67b408d
description: Lightning Logger events contain information from observed Lightning component logs. This event type is available in the EventLogFile object in API version 58.0 and later.
---
# Lightning Logger Event Type

Lightning Logger events contain information from observed Lightning component logs. This event type is available in the EventLogFile object in API version 58.0 and later.

To enable Lightning Logger events, from Setup, in the Quick Find box, enter event, and then select **Event Monitoring Settings**. Turn on Lightning Logger Events.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

The browser sends Lightning Logger event logs to the server in batches. Batches are sent when the user interacts with the page and when the page closes or refreshes. If the user experiences connectivity issues or if their login session expires due to browser inactivity, any pending Lightning Logger event logs on the browser are erased. There isn’t a way to retrieve these lost logs.

The limit for Lightning Logger events is 30,000 events per minute per organization. Burst capacity may support up to 45,000-50,000 events per minute, but this is not guaranteed. The MESSAGE field shows details about what's logged when the limit is hit.

For details about event monitoring, see the [Trailhead Event Monitoring module](https://trailhead.salesforce.com/en/modules/event_monitoring/units/event_monitoring_intro "HTML (New Window)") or [REST API Developer’s Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_rest.meta/api_rest/using_resources_event_log_files.htm "HTML (New Window)").

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

Event Monitoring logs are a source of truth but are not durable. Data loss can occur during Salesforce site switches, instance refreshes, or unplanned outages. For more information, see [Using Event Monitoring](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_rest.meta/api_rest/using_resources_event_log_files.htm "HTML (New Window)").

## Fields

<table class="featureTable sort_table" summary=""><tbody class="tbody"><tr><td class="entry"><strong class="ph b">Field</strong></td><td class="entry"><strong class="ph b">Details</strong></td></tr><tr><td class="entry"><span class="keyword parmname">APP_NAME</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The name of the application the user accessed.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">BROWSER_NAME</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The name of the browser that the user accessed.</dd><dt class="dt dlterm">Example</dt><dd class="dd">Chrome, IE, Safari, Gecko</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">BROWSER_VERSION</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The user’s browser version in <samp class="codeph nolang">major.minor</samp> format. Some browsers don’t provide a minor version.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">CLIENT_GEO</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The geolocation of the client in the form of &lt;Country&gt;/&lt;State|Province&gt;.</dd><dt class="dt dlterm">Example</dt><dd class="dd">United States/California</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">CLIENT_ID</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The API client ID.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">CLIENT_IP</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The IP address of the client that’s using Salesforce services. A Salesforce internal IP, such as a login from AppExchange, is shown as “Salesforce.com IP”.</dd><dt class="dt dlterm">Example</dt><dd class="dd"><samp class="codeph nolang">96.43.144.26</samp></dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">CONNECTION_TYPE</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The type of connection.</dd><dt class="dt dlterm">Possible Values</dt><dd class="dd"><ul class="ul bulletList"><li class="li"><samp class="codeph nolang">CDMA1x</samp></li><li class="li"><samp class="codeph nolang">CDMA</samp></li><li class="li"><samp class="codeph nolang">EDGE</samp></li><li class="li"><samp class="codeph nolang">EVDO0</samp></li><li class="li"><samp class="codeph nolang">EVDOA</samp></li><li class="li"><samp class="codeph nolang">EVDOB</samp></li><li class="li"><samp class="codeph nolang">GPRS</samp></li><li class="li"><samp class="codeph nolang">HRPD</samp></li><li class="li"><samp class="codeph nolang">HSDPA</samp></li><li class="li"><samp class="codeph nolang">HSUPA</samp></li><li class="li"><samp class="codeph nolang">LTE</samp></li><li class="li"><samp class="codeph nolang">WIFI</samp></li></ul></dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">DEVICE_MODEL</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The name of the device model.</dd><dt class="dt dlterm">Example</dt><dd class="dd">iPad, iPhone</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">DEVICE_PLATFORM</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The type of application experience in <span class="keyword parmname">name:experience:form</span> format.</dd><dt class="dt dlterm">Possible Values</dt><dd class="dd">Name<ul class="ul bulletList"><li class="li"><samp class="codeph nolang">APP_BUILDER</samp></li><li class="li"><samp class="codeph nolang">CUSTOM</samp></li><li class="li"><samp class="codeph nolang">S1</samp></li><li class="li"><samp class="codeph nolang">SFX</samp></li></ul>Experience<ul class="ul bulletList"><li class="li"><samp class="codeph nolang">BROWSER</samp></li><li class="li"><samp class="codeph nolang">HYBRID</samp></li></ul>Form<ul class="ul bulletList"><li class="li"><samp class="codeph nolang">DESKTOP</samp></li><li class="li"><samp class="codeph nolang">PHONE</samp></li><li class="li"><samp class="codeph nolang">TABLET</samp></li></ul></dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">DEVICE_SESSION_ID</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">Id</dd><dt class="dt dlterm">Description</dt><dd class="dd">The unique identifier of the user’s session based on page load time. When the user reloads a page, a new session is started.</dd><dt class="dt dlterm">Example</dt><dd class="dd">321a1ddfaf924803a075f1e69fc87bc06f53ccd0</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">EVENT_TYPE</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The type of event. The value is always <span class="keyword parmname">LightningLogger</span>.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">LOGIN_KEY</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The string that ties together all events in a user’s login session. It starts with a login event and ends with either a logout event or the user session expiring.</dd><dt class="dt dlterm">Example</dt><dd class="dd"><span class="ph" id="login-key-ex"><a name="login-key-ex"></a>GeJCsym5eyvtEK2I</span></dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">MESSAGE</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The message passed to the <samp class="codeph nolang">lightning/logger</samp> <samp class="codeph nolang">log()</samp> method. The message can be a JSON object or a string. String length is limited to 4 KB (4096 characters).</dd><dd class="dd">If you hit the logger limit, subsequent events are muted for a minute. During this time, the message field is replaced with this text: <samp class="codeph nolang">Rate limiting hit for this organization.</samp> Lightning Logger events resume when the limit resets in the next minute.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">ORGANIZATION_ID</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The 15-character ID of the org.</dd><dt class="dt dlterm">Example</dt><dd class="dd">00D000000000123</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">OS_NAME</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The operating system name, derived from the User Agent.</dd><dt class="dt dlterm">Example</dt><dd class="dd">Android, iOS, OSX, Windows</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">OS_VERSION</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The operating system version, derived from the User Agent.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">PAGE_CONTEXT</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The name of the component hosting the main page content.</dd><dt class="dt dlterm">Example</dt><dd class="dd">clients:cardsContainer</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">PAGE_ENTITY_ID</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">Id</dd><dt class="dt dlterm">Description</dt><dd class="dd">The entity ID (if any) of the record being displayed.</dd><dt class="dt dlterm">Example</dt><dd class="dd">0013000000I3zJAAAZ</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">PAGE_ENTITY_TYPE</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The entity type of the page being displayed.</dd><dt class="dt dlterm">Example</dt><dd class="dd">Task, contacts</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">PAGE_URL</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">Relative URL of the top-level Lightning Experience or Salesforce mobile app page that the user opened. The page can contain one or more Lightning components. Multiple record IDs can be associated with <span class="keyword parmname">PAGE_URL</span>.</dd><dt class="dt dlterm">Example</dt><dd class="dd">/sObject/0064100000JXITSAA5/view</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">REQUEST_ID</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same&nbsp;<span class="keyword parmname">REQUEST_ID</span>.</dd><dt class="dt dlterm">Example</dt><dd class="dd">3nWgxWbDKWWDIk0FKfF5DV</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">SDK_APP_TYPE</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The mobile SDK application type.</dd><dt class="dt dlterm">Possible Values</dt><dd class="dd"><ul class="ul bulletList"><li class="li"><samp class="codeph nolang">HYBRID</samp></li><li class="li"><samp class="codeph nolang">HYBRIDLOCAL</samp></li><li class="li"><samp class="codeph nolang">HYBRIDREMOTE</samp></li><li class="li"><samp class="codeph nolang">NATIVE</samp></li><li class="li"><samp class="codeph nolang">REACTNATIVE</samp></li></ul></dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">SDK_APP_VERSION</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The mobile SDK application version number.</dd><dt class="dt dlterm">Example</dt><dd class="dd">5.0</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">SDK_VERSION</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The mobile SDK version number.</dd><dt class="dt dlterm">Example</dt><dd class="dd">2.1.0</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">SEQUENCE</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">Number</dd><dt class="dt dlterm">Description</dt><dd class="dd">An auto-incremented sequence number of the current event since the session started.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">SESSION_KEY</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The user’s unique session ID. Use this value to identify all events in Lightning Experience within a session. When the user logs out and logs in again, a new session is started.</dd><dt class="dt dlterm">Example</dt><dd class="dd">cdd09305cb6babf34059e27f70e47f1b11dec868</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">TIMESTAMP</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The access time of Salesforce services in GMT.</dd><dt class="dt dlterm">Example</dt><dd class="dd">20130715233322.670</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">TIMESTAMP_DERIVED</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">DateTime</dd><dt class="dt dlterm">Description</dt><dd class="dd">The access time of Salesforce services in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ).</dd><dt class="dt dlterm">Example</dt><dd class="dd">2015-07-27T11:32:59.555Z. The timezone is GMT.</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">UI_EVENT_RELATIVE_TIMESTAMP</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">Number</dd><dt class="dt dlterm">Description</dt><dd class="dd">Difference in milliseconds between when the message was logged and when the browser tab was opened.</dd><dt class="dt dlterm">Example</dt><dd class="dd">29322.23</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">UI_EVENT_TIMESTAMP</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">Number</dd><dt class="dt dlterm">Description</dt><dd class="dd">The time at which this event occurred, measured in milliseconds.</dd><dt class="dt dlterm">Example</dt><dd class="dd">1479769912796</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">USER_ID</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The 15-character ID of the user accessing Salesforce services through the UI or API.</dd><dt class="dt dlterm">Example</dt><dd class="dd">00530000009M943</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">USER_ID_DERIVED</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">Id</dd><dt class="dt dlterm">Description</dt><dd class="dd">The 18-character case-insensitive ID of the user who’s using Salesforce services through the UI or the API.</dd><dt class="dt dlterm">Example</dt><dd class="dd">00590000000I1SNIA0</dd></dl></td></tr><tr><td class="entry"><span class="keyword parmname">USER_TYPE</span></td><td class="entry"><dl class="dl detailList"><dt class="dt dlterm">Type</dt><dd class="dd">String</dd><dt class="dt dlterm">Description</dt><dd class="dd">The category of user license of the user accessing Salesforce services through the UI or API.</dd><dt class="dt dlterm">Possible Values</dt><dd class="dd"><ul class="ul bulletList"><li class="li"><samp class="codeph nolang">A</samp>: Automated Process</li><li class="li"><samp class="codeph nolang">b</samp>: High Volume Portal</li><li class="li"><samp class="codeph nolang">C</samp>: Customer Portal User</li><li class="li"><samp class="codeph nolang">D</samp>: External Who</li><li class="li"><samp class="codeph nolang">F</samp>: Self-Service</li><li class="li"><samp class="codeph nolang">G</samp>: Guest</li><li class="li"><samp class="codeph nolang">L</samp>: Package License Manager</li><li class="li"><samp class="codeph nolang">N</samp>: Salesforce to Salesforce</li><li class="li"><samp class="codeph nolang">n</samp>: CSN Only</li><li class="li"><samp class="codeph nolang">O</samp>: Power Custom</li><li class="li"><samp class="codeph nolang">o</samp>: Custom</li><li class="li"><samp class="codeph nolang">P</samp>: Partner</li><li class="li"><samp class="codeph nolang">p</samp>: Customer Portal Manager</li><li class="li"><samp class="codeph nolang">S</samp>: Standard</li><li class="li"><samp class="codeph nolang">X</samp>: Salesforce Administrator</li></ul></dd></dl></td></tr></tbody></table>