recipes/_configure_indexes.rb
Consider simplifying this complex logical expression. Open
Open
if %i[index default].include?(stanza_type) && daily_mb && ((!s2_enabled_index && !hash.key?('maxTotalDataSizeMB')) || (s2_enabled_index && !hash.key?('maxGlobalDataSizeMB')))
settings = CernerSplunk.my_cluster_data(node).fetch('settings', {})
replication_factor = settings['replication_factor'] || 1
indexer_count = settings['_cerner_splunk_indexer_count'] || 1
# If the frozen time isn't specified, splunk defaults to 6 years