1

Currently I am able to view all EventLogFile records from "https://salesforce-elf.herokuapp.com/event_log_files" but I dont see the exact request and response body for API eventtype. My requirement is external consumer are using Salesforce standard REST endpoints and we want to trace the information atleast request header coming in ?

Is there a way to get this data ?

2

1 Answer 1

2

This information is not available in Event Monitoring feature (EventLogFile)

There's a good reason for this: It could expose sensitive data

Logging request/response for API calls would be difficult except for custom APEX REST endpoints as OOTB endpoints can't exhaustively be covered with triggers (queries would be excluded, not all sobjects support triggers)

Reference: EventLogFile API type

2
  • Can we atleast get the header.. requirement is external system wants to send unique value in header if I am able to log the header I can check if it made to salesforce or not
    – sf_user
    Sep 26, 2019 at 22:07
  • you get what the doc says you get. URI is about the most identifiable discriminator available. If this is a custom apex endpoint, that apex code can do custom logging. You might also want to use Platform Events to log as even if the apexrest blows up, the Platform Event is published
    – cropredy
    Sep 26, 2019 at 22:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .