Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To access a field called "value" within a Painless script for an ingest pipeline, you can use the following syntax:

ctx.field.value

This assumes that "field" is the name of the field containing the "value" you want to access. Alternatively, you can use the following syntax if you know the name of the field:

ctx.<field_name>.value

Replace "field_name" with the actual name of the field.