graylog-plugin-pipeline-processor
graylog-plugin-pipeline-processor copied to clipboard
String interpolation
Constructing new strings from several sub-strings and variables is currently quite cumbersome.
Imagine the need to construct the string "Hello, world!" from the variable subject and the string template "Hello, %s!":
let greeting = concat(concat("Hello, ", subject), "!");
Being able to either use the + operator to concatenate strings and variables or allowing interpolation in the first place would make this much simpler:
// Imaginary + operator
let greeting_concat = "Hello, " + subject + "!";
// Imaginary string interpolation similar to Groovy or Scala
let greeting_interpolate = """Hello, ${subject}!"""
I was just about to open this issue. Super helpful function!