This endpoint gives you direct programmatic access to the logs for ALL your workflows.
This allows you to build first-class observability for customers or pipe data into the internal monitoring tools you use. You may also choose to use this endpoint to stream logs in real-time to a third-party logging service to enable alerting for your end-users.
Learn more about logs in Alloy.
Use the query parameters to filter, sort, and paginate logs. See the example fields for each parameter for valid values. A sample request URL is:
https://production.runalloy.com/logs?filters=[{"columns":{"value":"message"},"operators":{"value":"equals"},"userinput":{"value":"executionError"},"condition":{"value":"and"}}]&workflowId=67ef017d8eaeb50b18e635a1&associatedUserId=67a21c7d10e1dee8d5ec3a3d&skip=0&limit=10&sortBy=createdAt&sortOrder=desc
Array of filter objects to narrow down logs based on specific criteria. Pass as a JSON-encoded array string in the query parameter.
Example: [ { "columns": { "value": "message" | "data.executionId" | "forgeWorkflowId" | "createdAt" | "userId" | "forgeWorkflow.integrationId._id" | "workflowVersion" }, "operators": { "value": "notequals" | "equals" | "greaterthan" | "lessthan" | "equals" | "contains" | "notcontains" | "notequals" }, "userinput": { "value": String }, "condition": { "value": "and" } } ]
"[{\"columns\":{\"value\":\"message\"},\"operators\":{\"value\":\"equals\"},\"userinput\":{\"value\":\"executionError\"},\"condition\":{\"value\":\"and\"}}]"
To filter by a given workflow instead of all workflows of all users.
"67ef017d8eaeb50b18e635a1"
To filter user-specific logs instead of all users.
"67a21c7d10e1dee8d5ec3a3d"
Amount of docs to skip.
0
Amount of docs to return (page size).
10
Sort by (createdAt, completedAt, message, userId).
createdAt, completedAt, message, userId "createdAt"
Sort order (asc or desc).
asc, desc "desc"