Copy
Copy (copy)
Section titled “Copy (copy)”Copy fields of an event using JSONPATH expressions.
Transform json
Minimal example
Section titled “Minimal example”actions: - copy: jsonpath-fields: {}JSON
{ "actions": [ { "copy": { "jsonpath-fields": {} } } ]}Contents
Section titled “Contents”A ✓ marks a field that accepts a context variable such as
{{ VARIABLE }}.
General
Section titled “General”General
| Field | Type | Required | Description |
|---|---|---|---|
description |
string |
describe this step. | |
condition |
lua-expression (string) |
Only run this action if the specified condition is met. Examples: 2 * count() |
Mapping
Section titled “Mapping”Mapping
| Field | Type | Required | Description |
|---|---|---|---|
jsonpath-fields |
map (string) |
✅ | Fields to add to the event, where the values are the result of a JSONPath query For the query syntax see: https://www.ietf.org/archive/id/draft-ietf-jsonpath-base-12.html. |
overwrite ✓ |
boolean (bool) |
Override existing fields. Default: false |
Schema
Section titled “Schema”Jsonpath Fields Table
Section titled “Jsonpath Fields Table”| Output field | Selector |
|---|---|
user_id |
$.user.id |
Key format: field. Value format: jsonpath.
JSONPath query that selects a single value. Dot-path (a.b.0) and JSON Pointer (/a/b/0) are accepted as convenience and converted to JSONPath.