File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 8282 logstash_format "#{ENV['FLUENT_OPENSEARCH_LOGSTASH_FORMAT'] || 'false'}"
8383 logstash_prefix "#{ENV['FLUENT_OPENSEARCH_LOGSTASH_PREFIX'] || 'logstash'}"
8484 logstash_prefix_separator "#{ENV['FLUENT_OPENSEARCH_LOGSTASH_PREFIX_SEPARATOR'] || '-'}"
85+ sniffer_class_name "#{ENV['FLUENT_OPENSEARCH_SNIFFER_CLASS_NAME'] || 'Fluent::Plugin::OpenSearchSimpleSniffer'}"
8586 < buffer >
8687 flush_thread_count "#{ENV['FLUENT_OPENSEARCH_BUFFER_FLUSH_THREAD_COUNT'] || '1'}"
8788 flush_mode "#{ENV['FLUENT_OPENSEARCH_BUFFER_FLUSH_MODE'] || 'interval'}"
Original file line number Diff line number Diff line change @@ -14,6 +14,17 @@ if [ -n "$SIMPLE_SNIFFER" -a -f "$SIMPLE_SNIFFER" ] ; then
1414 FLUENTD_OPT=" $FLUENTD_OPT -r $SIMPLE_SNIFFER "
1515fi
1616
17+ < % end %>
18+ < % if target == " opensearch" %>
19+
20+ set -e
21+
22+ SIMPLE_SNIFFER=$( gem contents fluent-plugin-opensearch | grep opensearch_simple_sniffer.rb )
23+
24+ if [ -n " $SIMPLE_SNIFFER " -a -f " $SIMPLE_SNIFFER " ] ; then
25+ FLUENTD_OPT=" $FLUENTD_OPT -r $SIMPLE_SNIFFER "
26+ fi
27+
1728< % end %>
1829
1930exec fluentd -c /fluentd/etc/${FLUENTD_CONF} -p /fluentd/plugins --gemfile /fluentd/Gemfile ${FLUENTD_OPT}
You can’t perform that action at this time.
0 commit comments