Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Painless scripts as a processor #5073

Open
dlvenable opened this issue Oct 15, 2024 · 1 comment
Open

Support Painless scripts as a processor #5073

dlvenable opened this issue Oct 15, 2024 · 1 comment

Comments

@dlvenable
Copy link
Member

Is your feature request related to a problem? Please describe.

OpenSearch users are often familiar with Painless script. Also, many users are looking for generic scripting as well.

Describe the solution you'd like

Create a painless processor:

processor:
- painless:
     source |
       event['total_time'] = event['connection_time'] + event['response_time']

Describe alternatives you've considered (Optional)

This could also exist alongside an expression script using existing Data Prepper expression languages.

Additional context

N/A

@AdaptiveStep
Copy link

Cool idea. But why settle with painless. Why not just offer LUA scripting in general? Seems like an easier solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants