Allow the prefix key to come from a previous variable

On request of LOGSTASH-913
This allows to use a variable name in the key prefix.