Datadog: Search Logs
Availability
This workflow action is available on our Business and Enterprise for Incident Management pricing plans. Please contact our Sales Team to upgrade to an account with this action.
Description
Retrieve logs from Datadog using search queries and filters.
Instructions
- If you have not done so already, please follow our instructions to Create an Incident Workflow.
- When the instructions prompt you to add actions , select this action.
- Enter the following Inputs and then click Save. Continue following instructions to Publish the Workflow. When the action runs, you will see the Outputs listed below.
Inputs
Field References
Fields with the {+} icon accept Field References, which can be useful for referencing incident data or outputs created in prior workflow steps. To add Field References, click {+}, or enter
{{
, and select relevant fields. Please see our Field References article for more information.
Name | Description |
---|---|
Connection Input | Select a Workflow Integration or click New Datadog Connection to establish a new one. For US1 region, this will be the search log url: https://api.datadoghq.com/api/v2/logs/events/search. |
Query | The search query string for logs. |
Start Time | Select a value from the dropdown. This represents the logs start time. Default value 'Past 1 Hour . |
End Time | Select a value from the dropdown. This represents the logs end time. Default value Now . |
Sort | Sort order for the logs. Default value: timestamp descending. |
Limit | The maximum number of events in the response. |
Outputs
Name | Description |
---|---|
Logs | The JSON array of log entries that were retrieved. |
Log Count | Total number of matching logs returned. |
Query Used | The processed query string that was sent to Datadog. |
Time Range Start | The start time used for the search. |
Time Range End | The end time used for the search. |
Has More Results | Whether there are more results available for pagination. |
Next Page Token | Token for retrieving the next page of results. |
Search Duration | API response time in milliseconds. |
Result | Value that shows if the action was successful or not. Either Success or Failed . |
Result Summary | Brief description of what the action did or if it failed. |
Error | Brief description if the action failed. |
Updated about 12 hours ago