[Feature Request] Adding a custom string instead of ellipsis on vector truncate #438
Labels
type: feature
A value-adding code addition that introduce new functionality.
vrl: stdlib
Changes to the standard library
A note for the community
Use Cases
We want to make alerting for the events that have been truncated but an ellipsis is usually a more generic string to identify and any messages can have ellipsis on a log ingestion program if it's out of the viewing area of events. So if vector provides a feature so that we can add a custom string at the end of the truncated message. then we can set alerting based on that string. Making it through the truncate function would make it easier for us.
Attempted Solutions
No
Proposal
We can implement a function to add that custom string via vector truncate vrl function. just like the following
truncate("A long sentence.", limit: 11, custom_message: [event_truncated])
References
No response
Version
vector 0.30.0
The text was updated successfully, but these errors were encountered: