private void hecPost(String currentMessage) throws Exception {

    HttpPost post = new HttpPost(uri);
    post.addHeader("Authorization", "Splunk " + config.getToken());

    StringEntity requestEntity =
        new StringEntity(currentMessage, ContentType.create("application/json", "UTF-8"));

    post.setEntity(requestEntity);
    Future<HttpResponse> future = httpClient.execute(post, null);
    HttpResponse response = future.get();
    // System.out.println(response.getStatusLine());
    // System.out.println(EntityUtils.toString(response.getEntity()));

  }