Sends log entries to New Relic.
For prerequisites, see New Relic Ingest actions.
Send logs to New Relic
The action identifier is newrelic.ingest.sendLogs.
Sends logs to New Relic.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
attributes | Map | Optional. Common attributes included in all logs when provided. These merge with each log item, with log-specific values overriding common attributes when conflicts occur. |
|
logs | List | Required. List of logs. Each log requires a |
|
licenseKey | String | Optional. The New Relic Account License Key specifies the target account for your events. If not provided, the system uses the default license key from the account executing the workflow. Read more about our API keys to create and manage your New Relic Account License Key. |
|
selectors | List | Optional. The selectors to get only the specified parameters as output. |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Failure reason as message. |
The following example sends multiple log messages with shared and per-log attributes, then retrieves them with a NRQL query.
Workflow example |
|---|
Expected output: Retrieve logs: After successfully executing a workflow, you can retrieve the associated log by running a query under the account that executed the workflow: |