Hi Folks, I have an APIKey in my Elasticsearch which allows only index creation with specific patterns such as "app-abc-*". It does not allow index template creations. The company has a default-template which is applied to all indexes.
Well, If I start my metricbeat with name "app-abc" on index configuration I get an error because I need to set "setup.template" parameters.
So, I requested admin to create an empty template with name which metricbeat needs, and it worked, but since the company has a default-template the default one is used, and that's ok.
But my only concern is : I need to create a empty template just to bypass metricbeat error, why ? Is there a better way to do that ?
Hi @Ronaldo_Lanhellas Please share your metricbeat.yml and what version you are on.
By the way, setting up an index per app is an anti-pattern, as it potentially creates many small indices, which is not efficient. Curious why you want to do this... not to say there is not a reason but curious why.
Putting many apps in the same index / data stream is the best practice and then filter on the Query Side
for 8.14 this is a complete working metricbeat.yml
That will write to custom alias, index or data stream
metricbeat.config.modules:
# Glob pattern for configuration loading
path: ${path.config}/modules.d/*.yml
# Set to true to enable config reloading
reload.enabled: false
setup.template.enabled: false
setup.ilm.enabled: false
setup.kibana:
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["localhost:9200"]
index: my-metrics
GET _cat/indices/my-metrics?v
# Result
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size dataset.size
yellow open my-metrics tYuUH8ovRJC0rSNj2nbECw 1 1 291 0 566.4kb 566.4kb 566.4kb
About setting up an index per app, actually, I'm setting up an index per context in my org. So a lot of kafka connect brokers will write to the same datastream.
Option A, the SRE team created everything for us and just need to use. The only thing we have permission to create is the indexes with pattern "kconnect-*"
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.