---
schema_version: "1"
id: 8ae7806e5169d8a4f8ea2933c1a57aca5e82642d89a8ccdcac6040d02ea023a4
title: Monitoring Event Relays Using SOQL Queries
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/ev_relay_soql_queries.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.ev_relay_soql_queries.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c5bedbb28c2b8d2ffcb2ee41278383845d37bd31ba8f6cac2e60cf7df5e8d44a
description: You can perform a SOQL query on the EventRelayFeedback Salesforce object to get information about an event relay, including its status, the date and time of the last relayed event, and any error message. The information contained in EventRelayFeedback is available in Setup, on the Event Relays page.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Monitoring Event Relays Using SOQL Queries

You can perform a SOQL query on the EventRelayFeedback Salesforce object to get information about an event relay, including its status, the date and time of the last relayed event, and any error message. The information contained in EventRelayFeedback is available in Setup, on the Event Relays page.

To run the queries given in this section, you can use one of these methods.

- The Developer Console’s Query Editor. For more information about the Developer Console, see [Developer Console](https://help.salesforce.com/s/articleView?id=platform.code_dev_console.htm&type=5&language=en_US) and [Developer Console Query Editor](https://help.salesforce.com/s/articleView?id=platform.code_dev_console_tab_query_editor.htm&type=5&language=en_US).
- The query REST API resource using a REST API tool, such as Postman. See [Query](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_query.htm) in the REST API Developer Guide. For information on how to set up Postman and use the Salesforce API Collection, see [Salesforce APIs for Postman](https://github.com/forcedotcom/postman-salesforce-apis) in GitHub. In REST API, spaces in the query must be replaced with +. In Postman, you don’t replace spaces in queries because Postman handles them.

You can perform a REST call, a GET request, to this endpoint with the SOQL query appended. Because EventRelayFeedback is a Salesforce object, use the data REST API to query the object and not Tooling API. In Postman, navigate to **REST > Query**.

```
/services/data/v58.0/query/?q=<query>
```

For a description of EventRelayFeedback non-system fields, see [EventRelayFeedback](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventrelayfeedback.htm) in the Object Reference for the Salesforce Platform.

To get all the fields of EventRelayFeedback, run this query.

```
SELECT FIELDS(ALL) FROM EventRelayFeedback LIMIT 200
```

Example of a REST query call.

```
/services/data/v58.0/query/?q=SELECT+FIELDS(ALL)+from+EventRelayFeedback+LIMIT+200
```

If you aren’t interested in the system fields returned, use this query, which specifies non-system fields in the SELECT clause.

```
SELECT EventRelayNumber, EventRelayConfigId, LastRelayedEventTime, RemoteResource, Status,
    ErrorCode, ErrorMessage, ErrorTime, ErrorIdentifier FROM EventRelayFeedback
```

Example query response received using the REST query resource.

```
{
    "totalSize": 1,
    "done": true,
    "records": [
        {
            "attributes": {
                "type": "EventRelayFeedback",
                "url": "/services/data/v58.0/sobjects/EventRelayFeedback/7k4RM0000004LjjYAE"
            },
            "EventRelayNumber": "00000004",
            "EventRelayConfigId": "7k2RM0000004LoAYAU",
            "LastRelayedEventTime": "2023-04-03T19:23:23.000+0000",
            "RemoteResource": "aws.partner/salesforce.com/00DRM000000G2tq2AC/0YLRM00000001es4AA",
            "Status": "RUNNING",
            "ErrorCode": null,
            "ErrorMessage": null,
            "ErrorTime": null,
            "ErrorIdentifier": null
        }
    ]
}
```

The fields returned in the query correspond to fields in the UI. For example, RemoteResource corresponds to the Partner Event Source Name field, and LastRelayedEventTime corresponds to the Last Relayed field in the event relay detail page. For more information, see [Event Relays in Setup](https://help.salesforce.com/s/articleView?id=platform.ev_relay_ui.htm&release=264.0.0&type=5 "An event relay is a set of event configurations and a connection to a partner event source in Amazon EvenBridge. An event relay streams events from the Salesforce event bus to EventBridge. You can create an event relay in Setup.").