This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.
The Painless Lab is an interactive code editor that lets you test and debug Painless scripts in real-time. You can use the Painless scripting language to create Kibana runtime fields, process reindexed data, define complex Watcher conditions, and work with data in other contexts.
To get started, open the main menu, click Dev Tools, and then click Painless Lab.