<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I have   the elasticsearch destination working correctly, but if I
    try to use multiple rsources, I get an error<br>
    <br>
    <br>
    destination d_elasticsearch_0 {<br>
      elasticsearch(<br>
        index("flare-${YEAR}.${MONTH}.${DAY}.${HOUR}")<br>
        type("flare")<br>
        cluster("es-dcs-dev")<br>
        client_mode("node")<br>
        flush_limit("10000")<br>
        template("$MESSAGE                    ")<br>
        resource("/etc/elasticsearch/elasticsearch.yml")<br>
      );<br>
    };<br>
    <br>
    <br>
    works fine, but if I add a second resource<br>
    <br>
    destination d_elasticsearch_0 {<br>
      elasticsearch(<br>
        index("flare-${YEAR}.${MONTH}.${DAY}.${HOUR}")<br>
        type("flare")<br>
        cluster("es-dcs-dev")<br>
        client_mode("node")<br>
        flush_limit("10000")<br>
        template("$MESSAGE                    ")<br>
       
resource("/etc/elasticsearch/elasticsearch.yml;/etc/elasticsearch/logging.yml")<br>
      );<br>
    };<br>
    <br>
    I get an error<br>
    <br>
    Starting system logger (syslog-ng.esgateway):
    [2016-06-07T09:01:58.694633]
    org.syslog_ng.elasticsearch_v2.client.ESNodeClient.loadConfigFile:69
    - Can't load settings from file, file =
    '/etc/elasticsearch/elasticsearch.yml
    /etc/elasticsearch/logging.yml', reason = 'Failed to open stream for
    url [/etc/elasticsearch/elasticsearch.yml
    /etc/elasticsearch/logging.yml]';<br>
    <br>
    <br>
    Can anyone shed some light on how to configure multiple resources?<br>
    <br>
    <pre class="moz-signature" cols="500">-- 
Evan</pre>
  </body>
</html>