I have installed ELK stack and it has been running great.
I followed this guide for the setup: http://pfelk.3ilson.com/
I needed a grok debugger and therefore I installed x-pack with a basic license.
When installing I disabled security and then I named the cluster and node, even though I only have one node right now.
when looking in the kibana monitoring I see "unassigned shards" for each indice.
It seems like it is for all newly created shards.
Through a bit of Googling I manage to get the shards assigned running this command:
curl -XPUT 'localhost:9200/_settings' -d '
{
"index" : {
"number_of_replicas" : 0
}
}'
But everyday I have to do it, how can I make the change permanent?
Does any one know why it is happening?
FYI we’ve renamed ELK to the Elastic Stack, otherwise Beats and APM feel left out!
By default the Logstash template includes one replica. You will need to edit the template and change that so that future indices only include the primary. Note though that having replicas unassigned when you are running a single node doesn't cause any problems
I am as you might guess new to Elastic Stack and I actually don't think I am using a template.
If not is it then using one of those in this directory:
/usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-7.4.2-java/lib/logstash/outputs/elasticsearch
(Ubuntu install)
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "No endpoint or operation is available at [_templates]"
}
],
"type": "illegal_argument_exception",
"reason": "No endpoint or operation is available at [_templates]"
},
"status": 400
}
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.