# Graylog server isn't starting when put AWS Elasticsearch endpoint

**URL:** <https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668>\
**Category:** Graylog Central (peer support)\
**Created:** [April 29, 2021, 1:03pm UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668 "2021-04-29T13:03:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kesifalaraskey](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kesifalaraskey](https://community.graylog.org/u/kesifalaraskey)\
**Post date:** [April 29, 2021, 1:03pm UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/1 "2021-04-29T13:03:38Z")

</div>

Try to connet aws elasticsearch with graylog but as soon as i add elasticsearch endpoint graylog server stop working and server.log stop at line

> [InputBufferImpl] Initialized InputBufferImpl with ring size \<65536\> and wait strategy , running 2 parallel message handlers.

graylog server.log

> tail -f /var/log/graylog-server/server.log  
> 2021-04-29T12:50:24.224Z INFO [CmdLineTool] Loaded plugin: AWS plugins 4.0.6 [org.graylog.aws.AWSPlugin]  
> 2021-04-29T12:50:24.227Z INFO [CmdLineTool] Loaded plugin: Enterprise Integrations 4.0.6 [org.graylog.enterprise.integrations.EnterpriseIntegrationsPlugin]  
> 2021-04-29T12:50:24.228Z INFO [CmdLineTool] Loaded plugin: Integrations 4.0.6 [org.graylog.integrations.IntegrationsPlugin]  
> 2021-04-29T12:50:24.228Z INFO [CmdLineTool] Loaded plugin: Collector 4.0.6 [org.graylog.plugins.collector.CollectorPlugin]  
> 2021-04-29T12:50:24.229Z INFO [CmdLineTool] Loaded plugin: Graylog Enterprise 4.0.6 [org.graylog.plugins.enterprise.EnterprisePlugin]  
> 2021-04-29T12:50:24.230Z INFO [CmdLineTool] Loaded plugin: Threat Intelligence Plugin 4.0.6 [org.graylog.plugins.threatintel.ThreatIntelPlugin]  
> 2021-04-29T12:50:24.230Z INFO [CmdLineTool] Loaded plugin: Elasticsearch 6 Support 4.0.6+40b7be5 [org.graylog.storage.elasticsearch6.Elasticsearch6Plugin]  
> 2021-04-29T12:50:24.230Z INFO [CmdLineTool] Loaded plugin: Elasticsearch 7 Support 4.0.6+40b7be5 [org.graylog.storage.elasticsearch7.Elasticsearch7Plugin]  
> 2021-04-29T12:50:24.473Z INFO [CmdLineTool] Running with JVM arguments: -Xms1g -Xmx1g -XX:NewRatio=1 -XX:+ResizeTLAB -XX:-OmitStackTraceInFastThrow -Djdk.tls.acknowledgeCloseNotify=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -Dlog4j.configurationFile=file:///etc/graylog/server/log4j2.xml -Djava.library.path=/usr/share/graylog-server/lib/sigar -Dgraylog2.installation\_source=deb  
> 2021-04-29T12:50:24.715Z INFO [Version] HV000001: Hibernate Validator null  
> 2021-04-29T12:50:28.408Z INFO [InputBufferImpl] Message journal is enabled.  
> 2021-04-29T12:50:28.428Z INFO [NodeId] Node ID: a032cabe-3276-47a5-8d2b-ca2bd6f0610f  
> 2021-04-29T12:50:28.631Z INFO [LogManager] Loading logs.  
> 2021-04-29T12:50:28.656Z WARN [Log] Found a corrupted index file, /var/lib/graylog-server/journal/messagejournal-0/00000000000000000000.index, deleting and rebuilding index…  
> 2021-04-29T12:50:28.683Z INFO [LogManager] Logs loading complete.  
> 2021-04-29T12:50:28.686Z INFO [KafkaJournal] Initialized Kafka based journal at /var/lib/graylog-server/journal  
> 2021-04-29T12:50:28.709Z INFO [cluster] Cluster created with settings {hosts=[localhost:27017], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout=‘30000 ms’, maxWaitQueueSize=5000}  
> 2021-04-29T12:50:28.759Z INFO [cluster] Cluster description not yet available. Waiting for 30000 ms before timing out  
> 2021-04-29T12:50:28.790Z INFO [connection] Opened connection [connectionId{localValue:1, serverValue:316}] to localhost:27017  
> 2021-04-29T12:50:28.794Z INFO [cluster] Monitor thread successfully connected to server with description ServerDescription{address=localhost:27017, type=STANDALONE, state=CONNECTED, ok=true, version=ServerVersion{versionList=[4, 0, 24]}, minWireVersion=0, maxWireVersion=7, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=30, roundTripTimeNanos=2749544}  
> 2021-04-29T12:50:28.817Z INFO [connection] Opened connection [connectionId{localValue:2, serverValue:317}] to localhost:27017  
> 2021-04-29T12:50:29.021Z INFO [InputBufferImpl] Initialized InputBufferImpl with ring size \<65536\> and wait strategy , running 2 parallel message handlers.

---

<div class="post-metadata">

**Author:** ![reimlima](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/reimlima/32/16254_2.png) [@reimlima](https://community.graylog.org/u/reimlima)\
**Post date:** [April 29, 2021, 1:15pm UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/2 "2021-04-29T13:15:51Z")

</div>

Hi @kesifalaraskey

Can you filter your log for “ERROR” and paste it here once again…those “infos” and “warns” helps almost nothing to troubleshoot your problem…

---

<div class="post-metadata">

**Author:** ![kesifalaraskey](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kesifalaraskey](https://community.graylog.org/u/kesifalaraskey)\
**Post date:** [April 29, 2021, 2:43pm UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/3 "2021-04-29T14:43:32Z")

</div>

> [@reimlima](#):
>
> filter your log for “ERROR”

No ERROR line is showing in logs

---

<div class="post-metadata">

**Author:** ![reimlima](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/reimlima/32/16254_2.png) [@reimlima](https://community.graylog.org/u/reimlima)\
**Post date:** [April 29, 2021, 6:44pm UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/4 "2021-04-29T18:44:08Z")

</div>

From Graylog Server, can you access _(ping, telnet)_ your ES in AWS?

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [April 29, 2021, 11:03pm UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/5 "2021-04-29T23:03:31Z")

</div>

@kesifalaraskey

Is this a duplicate post?

> [@Graylog server is not starting](https://community.graylog.org/t/graylog-server-is-not-starting/19659):
>
> I have installed step to step from documentation but graylog server is not starting. Mongodb server is also running properly graylog/server.log \> ubuntu@ip-172-31-42-22:~$ tail -f /var/log/graylog-server/server.log at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:1.8.0\_282] at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:1.8.0\_282] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0\_282] at jav…

---

<div class="post-metadata">

**Author:** ![kesifalaraskey](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kesifalaraskey](https://community.graylog.org/u/kesifalaraskey)\
**Post date:** [April 30, 2021, 3:40am UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/6 "2021-04-30T03:40:58Z")

</div>

No, some difference is there between two.  
This one has clear view on what action error is occuring and also all other things are working properly just on adding AWS ES endpoint in conf file the thing stop working.

---

<div class="post-metadata">

**Author:** ![kesifalaraskey](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kesifalaraskey](https://community.graylog.org/u/kesifalaraskey)\
**Post date:** [April 30, 2021, 3:44am UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/7 "2021-04-30T03:44:50Z")

</div>

How can i do that?  
because after adding AWS ES endpoint the server is not starting and also server.log stuck at  
this last line

> [@kesifalaraskey](#):
>
> [InputBufferImpl] Initialized InputBufferImpl with ring size \<65536\> and wait strategy , running 2 parallel message handlers.

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [April 30, 2021, 4:03am UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/8 "2021-04-30T04:03:44Z")

</div>

Oh I see, For a minute I thought it was the same problem. My apologies.

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [April 30, 2021, 4:17am UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/9 "2021-04-30T04:17:43Z")

</div>

@kesifalaraskey

Hello,

Can you show your Graylog configuration, make sure you keep private configuration private.

This might help with server.conf file.

` grep -v "^#\|^$" server.conf | sed -e "s/#.*$//g"`

Also your Elasticsearch configuration file.

`grep -v "^#\|^$" elasticsearch.yml | sed -e "s/#.*$//g"`

This will help us find your issue or at least narrow it down.

Thanks

Edit:  
Make sure ES is running first and in “Green” as I showed in the other post.  
Then install/start MongoDb. Last start Graylog Service. Not sure if that will help but doesnt hurt to try.

---

<div class="post-metadata">

**Author:** ![kesifalaraskey](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kesifalaraskey](https://community.graylog.org/u/kesifalaraskey)\
**Post date:** [April 30, 2021, 5:17am UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/10 "2021-04-30T05:17:17Z")

</div>

Thanks you all,

I have fixed the thing just by adding elasticsearch version manually in server.conf file.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [May 14, 2021, 5:17am UTC](https://community.graylog.org/t/graylog-server-isnt-starting-when-put-aws-elasticsearch-endpoint/19668/11 "2021-05-14T05:17:24Z")

</div>

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