Set up index template with 0 replicas, always creates with 1

I'm using filebeat:

filebeat.prospectors:
- type: log
  enabled: true
  json.keys_under_root: true
  json.overwrite_keys: true
  paths:
    - /etc/logs/*.txt
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml    
xpack.monitoring.enabled: true
name: "azure2elasticstack"
setup.template:
  name: "filebeat-rr-stats"
  pattern: "filebeat-rr-stats-*"
  settings:
    index:
      number_of_shards: 1
      number_of_replicas: 0
logging.level: info
output.elasticsearch:
  bulk_max_size: 1000
  index: "filebeat-rr-stats-%{[beat.version]}-%{+yyyy.ww}"

However, my indexes are created with 1 shard and 1 replica per index, not 0 as indicated. Doing a GET /_template shows that number_of_replicas is 0 there.

Why is this/how can I fix, please? I don't want replicas.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.