[SalesForce] Sales force Event Log File shows only logout and URL event types

Salesforce Event log file only showing log out and URI Event Types. All Event Types are not showing up in Event Log File query.

QUERY:

SELECT EventType FROM EventLogFile

OUTPUT :

**EventType**
*Logout
URI*

Please guide, how to obtain all Event Types in the EventLogFile.

I am using Developer Edition (DE) account

Best Answer

You can get the picklist values from the metadata using describes.

Set<String> eventTypes = new Set<String>();
for (PicklistEntry entry : EventLogFile.EventType.getDescribe().getPicklistValues())
    eventTypes.add(entry.getValue());

They are also listed here and should have the same values:

Event monitoring can be used with 32 different file types:

  • Apex Callout
  • Apex Execution
  • Apex SOAP
  • Apex Trigger
  • API
  • Async Report
  • Bulk API
  • Change Set Operation
  • Content Distribution
  • Content Document Link
  • Content Transfer
  • Dashboard
  • Document Attachment Downloads
  • Login
  • Login As
  • Logout
  • MDAPI Operation
  • Multiblock Report
  • Package Install
  • Queued Execution
  • Report
  • Report Export
  • REST API
  • Salesforce1 Adoption (UI Tracking)
  • Sandbox
  • Sites
  • Time-Based Workflow
  • URI
  • Visualforce
  • Wave Change
  • Wave Interaction
  • Wave Performance

They are also listed out here but with duplicates and strange formatting.

Related Topic