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

Add string truncate processor to the family of mutate string processor #3925

Closed
kkondaka opened this issue Jan 8, 2024 · 0 comments · Fixed by #3924
Closed

Add string truncate processor to the family of mutate string processor #3925

kkondaka opened this issue Jan 8, 2024 · 0 comments · Fixed by #3924
Assignees
Labels
plugin - processor A plugin to manipulate data in the data prepper pipeline.
Milestone

Comments

@kkondaka
Copy link
Collaborator

kkondaka commented Jan 8, 2024

Is your feature request related to a problem? Please describe.
The string truncate processor should truncate the string to the user configured length.

Describe the solution you'd like
Solution would be to support truncate string processor with the following config

  processor:                                                                                                                                            
    - truncate:                                                                                                                                
        entries:                                                                                                                                        
          - source: "message" 
            start_at: 2                                                                                                                      
            length: 5                                                                                                                                  
            truncate_when: <condition>  

Describe alternatives you've considered (Optional)
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@kkondaka kkondaka self-assigned this Jan 8, 2024
@kkondaka kkondaka removed the untriaged label Jan 8, 2024
@kkondaka kkondaka removed the untriaged label Jan 9, 2024
@dlvenable dlvenable added this to the v2.7 milestone Jan 9, 2024
@dlvenable dlvenable added the plugin - processor A plugin to manipulate data in the data prepper pipeline. label Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin - processor A plugin to manipulate data in the data prepper pipeline.
Projects
Development

Successfully merging a pull request may close this issue.

2 participants