Hasura

Hasura Cloud is a fully managed version of GraphQL Engine that provides you with a scalable, secure, and globally distributed GraphQL API over your data sources. You can use a webhook in the Hasura platform to forward logs to the Sumo Logic HTTP endpoint. Using these logs, you can monitor the insert, update, and deletion events in Sumo Logic. For more details, refer to the Hasura Documentation.
Event types
The Sumo Logic integration for Hasura ingests events into Sumo Logic through an outgoing webhook available in Hasura. The following event types are ingested through the Hasura webhook:
- Insert Operation
- Delete Operation
- Update Operation
Setup
This section has instructions for collecting logs for the Sumo Logic Hasura webhook collection.
Source configuration
Follow the below steps to configure the Hosted Collector to receive Hasura events:
- In the Sumo Logic portal, create a new Hosted Collector or use an existing one. Then add an HTTP Logs and Metrics Source.
- Configure Source Category in the HTTP source - for example,
webhook/hasura
- for the Hasura integration. - Copy and save the endpoint URL of the source.
Vendor configuration
Configure the webhook integration in Hasura to send events to the Sumo Logic HTTP source. Once configured, it will be triggered each time the events occur within your Hasura account.
Follow the below steps to configure the Hasura webhook.
- Sign in to the Hasura account.
- Go to the project console for which you want to send notifications to Sumo Logic.
- Go to Events and click Create. The webhook form appears.
- Enter webhook form data as follows:
- Trigger Name. Provide a name for the webhook.
- Database. Select the database from the dropdown menu.
- Schema/Table. Select the schema and table from the dropdown menu.
- Trigger Operations. Select the type of events that will cause this webhook to execute.
- Webhook (HTTP/S) Handlers. Enter the Sumo Logic HTTP endpoint URL (source address) created above.
- Click Create Event Trigger.
- Verify Hasura events are getting ingested in Sumo Logic by executing the following query on Sumo Logic's Log Search panel.
_sourceCategory=webhook/hasura
- For detailed information about webhook creation, refer to the Hasura Documentation.
- For support, contact Hasura.