When you will install Elasticsearch on your machine, you might be facing these Error Elasticsearch Bootstrap check failed. This is because you didn’t make some changes before installing the ElasticSearch. you can check the bootstrap configuration file in Elasticsearch and find the reason to fail.
Check Out: Install Elasticsearch Using Source Code
Error Elasticsearch Bootstrap Check Failed In ElasticSearch:
Main Issues: You will get these issues when you will install Elasticsearch without making any settings in Elasticsearch.yml
- Max file descriptors  for Elasticsearch process is too low, increase to at least 
- Maximum number of threads  for user [elastic] is too low, increase to at least 
- Max virtual memory areas vm.max_map_count  is too low, increase to at least 
You may set these values in /etc/security/limits.conf
1. Now Increase the file Descriptions
ulimit -n 65536
if you don’t want to set it 65536, use nofile to 65536 in the above file.
2. Now Set Number of threads for the user.
ulimit -u 4096
if you don’t want to set it, 4096 users, set nproc to 2048 in the above file.
3. Now Set Virtual Memory in /etc/sysctl.conf
After settings these, you need to run this command to make changes
Check Out: Error: Can’t Run Elasticsearch As Root
If above settings do not work for you, try this one and Final Settings should be looks like in /etc/security/limits.conf
You’re done bootstrap configuration file