Change Logic for logstash

This commit is contained in:
Mike Reeves
2020-07-06 13:58:38 -04:00
parent 087080d583
commit 1016315196

View File

@@ -1013,14 +1013,17 @@ node_pillar() {
" es_port: $node_es_port"\ " es_port: $node_es_port"\
" log_size_limit: $log_size_limit"\ " log_size_limit: $log_size_limit"\
" cur_close_days: $CURCLOSEDAYS"\ " cur_close_days: $CURCLOSEDAYS"\
if [ "$install_type" != 'EVAL' ] || [ "$install_type" != 'HELIXSENSOR' ] || [ "$install_type" != 'MASTERSEARCH' ] || [ "$install_type" != 'STANDALONE' ]; then "" >> "$pillar_file"
if [ "$install_type" != 'EVAL' ] && [ "$install_type" != 'HELIXSENSOR' ] && [ "$install_type" != 'MASTERSEARCH' ] && [ "$install_type" != 'STANDALONE' ]; then
printf '%s\n'\
"logstash_settings:"\ "logstash_settings:"\
" ls_pipeline_batch_size: $LSPIPELINEBATCH"\ " ls_pipeline_batch_size: $LSPIPELINEBATCH"\
" ls_input_threads: $LSINPUTTHREADS"\ " ls_input_threads: $LSINPUTTHREADS"\
" ls_batch_count: $LSINPUTBATCHCOUNT"\ " ls_batch_count: $LSINPUTBATCHCOUNT"\
" lsheap: $NODE_LS_HEAP_SIZE"\ " lsheap: $NODE_LS_HEAP_SIZE"\
fi
"" >> "$pillar_file" "" >> "$pillar_file"
fi
printf '%s\n' '----' >> "$setup_log" 2>&1 printf '%s\n' '----' >> "$setup_log" 2>&1
cat "$pillar_file" >> "$setup_log" 2>&1 cat "$pillar_file" >> "$setup_log" 2>&1