Cloud
resource
Resource is a processor type that runs a processor resource identified by its label.
-
Common
-
Advanced
processor:
resource: ""
processor:
resource: ""
This processor allows you to reference the same configured processor resource in multiple places, and can also tidy up large nested configs. For example, the config:
pipeline:
processors:
- mapping: |
root.message = this
root.meta.link_count = this.links.length()
root.user.age = this.user.age.number()
Is equivalent to:
pipeline:
processors:
- resource: foo_proc
processor_resources:
- label: foo_proc
mapping: |
root.message = this
root.meta.link_count = this.links.length()
root.user.age = this.user.age.number()
Was this helpful?