function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vitalii Kaigorodtsev 7Vitalii Kaigorodtsev 7 

Retrieve values of ApexCallout event type from EventLogFile object.

Hello! It is possible to retrieve programmatically values of ApexCallout event type from EventLogFile object? 
Raj VakatiRaj Vakati
Use this query 
 
SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+ WHERE+EventType+=+'ApexCallout'

and pass this query to rest resource


View Events in the REST Explorer
The REST Explorer gives you access to the Salesforce REST API, a web service that lets you retrieve data from your organization.
To get more information about your organization’s Report Export events in Workbench:
In the top menu, select utilities | REST Explorer.
Replace the existing text with /services/data/v<APIversion>.0/query?q=SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+ WHERE+EventType+=+'ApexCallout', where <APIversion> is the API version you’re using, such as 46.
Click Execute.



https://trailhead.salesforce.com/en/content/learn/modules/event_monitoring/event_monitoring_query

https://sfdcbrewery.github.io/SalesforceEventMonitoring/
http://www.salesforcehacker.com/2018/01/whats-new-in-spring18-with-event.html
https://www.simplysfdc.com/2014/10/salesforce-event-log-files.html
Vitalii Kaigorodtsev 7Vitalii Kaigorodtsev 7
Thanks, Raj. But can I do the same using apex? I mean is it possible to get values of fields, like METHOD, TIMESTAMP, URL etc. from ApexCallout event type? Please, note, that Workbench doesn't see this fields.
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_eventlogfile_apexcallout.htm
Raj VakatiRaj Vakati
You can call this API from apex class using rest API ..
Vitalii Kaigorodtsev 7Vitalii Kaigorodtsev 7
Shame on me, but I tried and I can't.
Can you post working example?