Concatenation in Ruby Code

In Ruby it works like this “CPU#{i}”, not sure how does it work in Logstash.

It works exactly the same in Logstash, but the string needs to be double-quoted. Such string-interpolation doesn't take place in single-quoted strings like in your example.

2 Likes