Logstash initialize variables before input

Generate them externally to logstash and use environment variables, or alternatively, see this post.