Send variables to ElasticSearch during program is running