# On startup it takes a long time for Elasticsearch to write the first message to a log file

**URL:** https://discuss.elastic.co/t/on-startup-it-takes-a-long-time-for-elasticsearch-to-write-the-first-message-to-a-log-file/21119
**Category:** Elasticsearch
**Created:** [December 6, 2014, 4:27pm UTC](https://discuss.elastic.co/t/on-startup-it-takes-a-long-time-for-elasticsearch-to-write-the-first-message-to-a-log-file/21119 "2014-12-06T16:27:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel\_Feinstein](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@Daniel\_Feinstein](https://discuss.elastic.co/u/Daniel_Feinstein)
#### Post date: [December 6, 2014, 4:27pm UTC](https://discuss.elastic.co/t/on-startup-it-takes-a-long-time-for-elasticsearch-to-write-the-first-message-to-a-log-file/21119/1 "2014-12-06T16:27:19Z")

</div>

Hi,

I have ES version 1.4.1 installed on RedHat 6.5. The data is relatively  
small about 3.5Gb. The cluster contains two nodes sometimes it takes about  
30 mins to start the first node after shutdown. No log messages are written  
to the log during this time.

Is it a normal behavior? Is it possible to improve it?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [December 7, 2014, 8:39am UTC](https://discuss.elastic.co/t/on-startup-it-takes-a-long-time-for-elasticsearch-to-write-the-first-message-to-a-log-file/21119/2 "2014-12-07T08:39:11Z")

</div>

No that is very unusual, try setting some of the logging to debug  
(logging.yml).

On 7 December 2014 at 03:27, Daniel Feinstein [daniel@tolunadocs.com](mailto:daniel@tolunadocs.com) wrote:

> Hi,
> 
> I have ES version 1.4.1 installed on RedHat 6.5. The data is relatively  
> small about 3.5Gb. The cluster contains two nodes sometimes it takes about  
> 30 mins to start the first node after shutdown. No log messages are written  
> to the log during this time.
> 
> Is it a normal behavior? Is it possible to improve it?
> 
> Thanks
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8O2R\_wriX-MhHv8iOp\_OT14TQDzQGpEPs9x%2BWnS\_F7Nw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8O2R_wriX-MhHv8iOp_OT14TQDzQGpEPs9x%2BWnS_F7Nw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Daniel\_Feinstein](https://avatars.discourse-cdn.com/v4/letter/d/cab0a1/32.png) [@Daniel\_Feinstein](https://discuss.elastic.co/u/Daniel_Feinstein)
#### Post date: [December 7, 2014, 1:26pm UTC](https://discuss.elastic.co/t/on-startup-it-takes-a-long-time-for-elasticsearch-to-write-the-first-message-to-a-log-file/21119/3 "2014-12-07T13:26:23Z")

</div>

I have enabled all possible logs in the logging.yml (attached) - the same  
behavior.

On Sunday, December 7, 2014 10:39:39 AM UTC+2, Mark Walkom wrote:

> No that is very unusual, try setting some of the logging to debug  
> (logging.yml).
> 
> On 7 December 2014 at 03:27, Daniel Feinstein \<[dan...@tolunadocs.com](mailto:dan...@tolunadocs.com)  
> \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > I have ES version 1.4.1 installed on RedHat 6.5. The data is relatively  
> > small about 3.5Gb. The cluster contains two nodes sometimes it takes about  
> > 30 mins to start the first node after shutdown. No log messages are written  
> > to the log during this time.
> > 
> > Is it a normal behavior? Is it possible to improve it?
> > 
> > Thanks
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a8f0e002-671f-4fd0-ab06-87b070005fd7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e57d12bd-5e3f-4ef2-8ae1-238733d93354%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e57d12bd-5e3f-4ef2-8ae1-238733d93354%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 12:45am UTC](https://discuss.elastic.co/t/on-startup-it-takes-a-long-time-for-elasticsearch-to-write-the-first-message-to-a-log-file/21119/4 "2017-07-06T00:45:13Z")

</div>


