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.

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 or REST API Developer’s Guide.

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.

  • Type: String
  • Description: The name of the application the user accessed.
  • Type: String
  • Description: The name of the browser that the user accessed.
  • Example: Chrome, IE, Safari, Gecko
  • Type: String
  • Description: The user’s browser version in major.minor format. Some browsers don’t provide a minor version.
  • Type: String
  • Description: The geolocation of the client in the form of <Country>/<State|Province>.
  • Example: United States/California
  • Type: String
  • Description: The API client ID.
  • Type: String
  • Description: 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”.
  • Example: 96.43.144.26
  • Type: String

  • Description: The type of connection.

  • Possible values:

    • CDMA1x
    • CDMA
    • EDGE
    • EVDO0
    • EVDOA
    • EVDOB
    • GPRS
    • HRPD
    • HSDPA
    • HSUPA
    • LTE
    • WIFI
  • Type: String
  • Description: The name of the device model.
  • Example: iPad, iPhone
  • Type: String

  • Description: The type of application experience in name:experience:form format.

  • Possible values:

    • Name

      • APP_BUILDER
      • CUSTOM
      • S1
      • SFX
    • Experience

      • BROWSER
      • HYBRID
    • Form

      • DESKTOP
      • PHONE
      • TABLET
  • Type: Id
  • Description: The unique identifier of the user’s session based on page load time. When the user reloads a page, a new session is started.
  • Example: 321a1ddfaf924803a075f1e69fc87bc06f53ccd0
  • Type: String
  • Description: The type of event. The value is always LightningLogger.
  • Type: String
  • Description: 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.
  • Example: GeJCsym5eyvtEK2I
  • Type: String

  • Description: The message passed to the lightning/logger log() method. The message can be a JSON object or a string. String length is limited to 4 KB (4096 characters).

    If you hit the logger limit, subsequent events are muted for a minute. During this time, the message field is replaced with this text: Rate limiting hit for this organization. Lightning Logger events resume when the limit resets in the next minute.

  • Type: String
  • Description: The 15-character ID of the org.
  • Example: 00D000000000123
  • Type: String
  • Description: The operating system name, derived from the User Agent.
  • Example: Android, iOS, OSX, Windows
  • Type: String
  • Description: The operating system version, derived from the User Agent.
  • Type: String
  • Description: The name of the component hosting the main page content.
  • Example: clients:cardsContainer
  • Type: Id
  • Description: The entity ID (if any) of the record being displayed.
  • Example: 0013000000I3zJAAAZ
  • Type: String
  • Description: The entity type of the page being displayed.
  • Example: Task, contacts
  • Type: String
  • Description: 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 PAGE_URL.
  • Example: /sObject/0064100000JXITSAA5/view
  • Type: String
  • Description: The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same REQUEST_ID.
  • Example: 3nWgxWbDKWWDIk0FKfF5DV
  • Type: String

  • Description: The mobile SDK application type.

  • Possible values:

    • HYBRID
    • HYBRIDLOCAL
    • HYBRIDREMOTE
    • NATIVE
    • REACTNATIVE
  • Type: String
  • Description: The mobile SDK application version number.
  • Example: 5.0
  • Type: String
  • Description: The mobile SDK version number.
  • Example: 2.1.0
  • Type: Number
  • Description: An auto-incremented sequence number of the current event since the session started.
  • Type: String
  • Description: 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.
  • Example: cdd09305cb6babf34059e27f70e47f1b11dec868
  • Type: String
  • Description: The access time of Salesforce services in GMT.
  • Example: 20130715233322.670
  • Type: DateTime
  • Description: The access time of Salesforce services in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ). The timezone is GMT.
  • Example: 2015-07-27T11:32:59.555Z
  • Type: Number
  • Description: Difference in milliseconds between when the message was logged and when the browser tab was opened.
  • Example: 29322.23
  • Type: Number
  • Description: The time at which this event occurred, measured in milliseconds.
  • Example: 1479769912796
  • Type: String
  • Description: The 15-character ID of the user accessing Salesforce services through the UI or API.
  • Example: 00530000009M943
  • Type: Id
  • Description: The 18-character case-insensitive ID of the user who’s using Salesforce services through the UI or the API.
  • Example: 00590000000I1SNIA0
  • Type: String

  • Description: The category of user license of the user accessing Salesforce services through the UI or API.

  • Possible values:

    • A - Automated Process
    • b - High Volume Portal
    • C - Customer Portal User
    • D - External Who
    • F - Self Service
    • G - Guest
    • L - Package License Manager
    • N - Salesforce to Salesforce
    • n - CSN Only
    • O - Power Custom
    • o - Custom
    • P - Partner
    • p - Customer Portal Manager
    • S - Standard
    • X - Salesforce Administrator