Coralogix: Search Logs

📘

Availability

See the Incident Workflow Actions Overview table for the plans this workflow is available on.

Description

Search for logs in Coralogix within a specified time range. This action retrieves diagnostic data from Coralogix programmatically during incident response, so your team can analyze logs as part of an automated workflow instead of running manual searches.

Prerequisites

A configured Coralogix connection to use for the query.

Instructions

  1. If you have not done so, follow the instructions to Create an Incident Workflow.
  2. When the instructions prompt you to add actions, select this action.
  3. Enter the following Inputs and click Save.
  4. Continue following instructions to Publish the Workflow.
  5. 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. Refer to the Field References article for more information.

🚧

Frequent Search Limit

The search window defined by Start Time and End Time must be 192 hours (8 days) or less, which is the Frequent Search limit in Coralogix.

📘

Numeric Field Comparisons

When comparing a numeric field that may be stored as text, cast it with :num (e.g. $d.status_code:num >= 500).

NameDescription
Connection InputThe Coralogix connection to use for the query.
QueryA DataPrime query (e.g. source logs | filter $d.status_code:num >= 500). Use source logs to return all logs. When comparing a numeric field that may be stored as text, cast it with :num.
Start TimeStart of the search window. Pick a predefined relative time from the list, or pass an ISO 8601 timestamp (e.g. 2025-10-07T14:00:00Z). The window must be 192 hours or less, per the Frequent Search limit.
End TimeEnd of the search window. Pick a predefined relative time from the list, or pass an ISO 8601 timestamp (e.g. 2025-10-07T16:00:00Z).
Limit (Optional)Maximum number of log entries to return. Maximum: 1000. This is applied as the DataPrime query limit; if the query already ends with its own limit, the smaller of the two wins.

Outputs

NameDescription
LogsArray of log entries retrieved. Each entry includes timestamp, severity, applicationName, subsystemName, message, and a fields object holding the full userData verbatim (the message and every custom field).
Log CountTotal number of log entries returned.
Query UsedThe DataPrime query sent to Coralogix.
Time Range StartThe start time used for the search.
Time Range EndThe end time used for the search.
ResultValue that shows if the action was successful or not. Either Success or Failed.
Result SummaryBrief description of what the action did or if it failed.
ErrorBrief description that is populated if the action failed.

Did this page help you?