Hi,<div><br></div><div>is that possible to set multiple resources for a node? We can use only one resource file.</div><div><br></div><div>What is your use case that needs this feature? Maybe you have splitted resource files and what we should have to do is just merge the files into a single resource file?</div><div><br></div><div><br></div><div>Laszlo Budai</div><div><div><br>On Tuesday, June 7, 2016, Evan Rempel <<a href="mailto:erempel@uvic.ca">erempel@uvic.ca</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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 cols="500">--
Evan</pre>
</div>
</blockquote></div></div>