Did I manage to delete my reply???
No… it was just hidden as spam…
So… I continue here.
status of ES and MongoDb service
[root@ip-172-31-34-89 ~]# systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2022-05-20 15:38:21 UTC; 2 weeks 4 days ago
Docs: https://www.elastic.co
Main PID: 1092 (java)
Tasks: 56 (limit: 194419)
Memory: 1.4G
CGroup: /system.slice/elasticsearch.service
└─1092 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -XX:+ShowCodeDetailsInExceptionMessages -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dio.netty.allocator.numDirectArenas=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.locale.providers=SPI,COMPAT -Xms1g -Xmx1g -XX:+UseG1GC -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=30 -Djava.io.tmpdir=/tmp/elasticsearch-5998333925082969722 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/lib/elasticsearch -XX:ErrorFile=/var/log/elasticsearch/hs_err_pid%p.log -Xlog:gc*,gc+age=trace,safepoint:file=/var/log/elasticsearch/gc.log:utctime,pid,tags:filecount=32,filesize=64m -XX:MaxDirectMemorySize=536870912 -Des.path.home=/usr/share/elasticsearch -Des.path.conf=/etc/elasticsearch -Des.distribution.flavor=oss -Des.distribution.type=rpm -Des.bundled_jdk=true -cp /usr/share/elasticsearch/lib/* org.elasticsearch.bootstrap.Elasticsearch -p /var/run/elasticsearch/elasticsearch.pid --quiet
May 20 15:38:02 ip-172-31-34-89.ec2.internal systemd[1]: Starting Elasticsearch...
May 20 15:38:21 ip-172-31-34-89.ec2.internal systemd[1]: Started Elasticsearch.
[root@ip-172-31-34-89 ~]# systemctl status mongod
● mongod.service - MongoDB Database Server
Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2022-05-20 15:38:03 UTC; 2 weeks 4 days ago
Docs: https://docs.mongodb.org/manual
Main PID: 1037 (mongod)
Memory: 546.6M
CGroup: /system.slice/mongod.service
└─1037 /usr/bin/mongod -f /etc/mongod.conf
May 20 15:38:00 ip-172-31-34-89.ec2.internal systemd[1]: Starting MongoDB Database Server...
May 20 15:38:01 ip-172-31-34-89.ec2.internal mongod[862]: about to fork child process, waiting until server is ready for connections.
May 20 15:38:01 ip-172-31-34-89.ec2.internal mongod[862]: forked process: 1037
May 20 15:38:03 ip-172-31-34-89.ec2.internal mongod[862]: child process started successfully, parent exiting
Elasticsearch & MongoDb logs
[root@ip-172-31-34-89 ~]# ll /var/log/elasticsearch/
total 3880
-rw-r--r--. 1 elasticsearch elasticsearch 2599219 Jun 8 12:03 gc.log
-rw-r--r--. 1 elasticsearch elasticsearch 2041 May 10 09:05 gc.log.00
-rw-r--r--. 1 elasticsearch elasticsearch 4776 May 10 09:05 gc.log.01
-rw-r--r--. 1 elasticsearch elasticsearch 2041 May 10 09:11 gc.log.02
-rw-r--r--. 1 elasticsearch elasticsearch 26154 May 10 09:11 gc.log.03
-rw-r--r--. 1 elasticsearch elasticsearch 2065 May 12 10:45 gc.log.04
-rw-r--r--. 1 elasticsearch elasticsearch 26915 May 12 10:45 gc.log.05
-rw-r--r--. 1 elasticsearch elasticsearch 2065 May 12 10:45 gc.log.06
-rw-r--r--. 1 elasticsearch elasticsearch 22265 May 12 10:45 gc.log.07
-rw-r--r--. 1 elasticsearch elasticsearch 2065 May 12 10:52 gc.log.08
-rw-r--r--. 1 elasticsearch elasticsearch 1206625 May 20 15:37 gc.log.09
-rw-r--r--. 1 elasticsearch elasticsearch 2017 May 20 15:38 gc.log.10
-rw-r--r--. 1 elasticsearch elasticsearch 2708 May 12 10:45 graylog-2022-05-10-1.json.gz
-rw-r--r--. 1 elasticsearch elasticsearch 2588 May 12 10:45 graylog-2022-05-10-1.log.gz
-rw-r--r--. 1 elasticsearch elasticsearch 3477 May 13 00:00 graylog-2022-05-12-1.json.gz
-rw-r--r--. 1 elasticsearch elasticsearch 3273 May 13 00:00 graylog-2022-05-12-1.log.gz
-rw-r--r--. 1 elasticsearch elasticsearch 428 May 18 15:58 graylog-2022-05-13-1.json.gz
-rw-r--r--. 1 elasticsearch elasticsearch 301 May 18 15:58 graylog-2022-05-13-1.log.gz
-rw-r--r--. 1 elasticsearch elasticsearch 492 May 20 15:37 graylog-2022-05-18-1.json.gz
-rw-r--r--. 1 elasticsearch elasticsearch 362 May 20 15:37 graylog-2022-05-18-1.log.gz
-rw-r--r--. 1 elasticsearch elasticsearch 2328 Jun 1 00:00 graylog-2022-05-20-1.json.gz
-rw-r--r--. 1 elasticsearch elasticsearch 2207 Jun 1 00:00 graylog-2022-05-20-1.log.gz
-rw-r--r--. 1 elasticsearch elasticsearch 0 May 10 09:05 graylog_deprecation.json
-rw-r--r--. 1 elasticsearch elasticsearch 0 May 10 09:05 graylog_deprecation.log
-rw-r--r--. 1 elasticsearch elasticsearch 0 May 10 09:05 graylog_index_indexing_slowlog.json
-rw-r--r--. 1 elasticsearch elasticsearch 0 May 10 09:05 graylog_index_indexing_slowlog.log
-rw-r--r--. 1 elasticsearch elasticsearch 0 May 10 09:05 graylog_index_search_slowlog.json
-rw-r--r--. 1 elasticsearch elasticsearch 0 May 10 09:05 graylog_index_search_slowlog.log
-rw-r--r--. 1 elasticsearch elasticsearch 1217 Jun 1 00:00 graylog.log
-rw-r--r--. 1 elasticsearch elasticsearch 2387 Jun 1 00:00 graylog_server.json
[root@ip-172-31-34-89 ~]# tail /var/log/elasticsearch/gc.log
[2022-06-08T12:03:22.827+0000][1092][gc,phases ] GC(1003) Other: 0.4ms
[2022-06-08T12:03:22.828+0000][1092][gc,heap ] GC(1003) Eden regions: 613->0(613)
[2022-06-08T12:03:22.828+0000][1092][gc,heap ] GC(1003) Survivor regions: 1->1(77)
[2022-06-08T12:03:22.828+0000][1092][gc,heap ] GC(1003) Old regions: 52->52
[2022-06-08T12:03:22.828+0000][1092][gc,heap ] GC(1003) Archive regions: 2->2
[2022-06-08T12:03:22.828+0000][1092][gc,heap ] GC(1003) Humongous regions: 7->7
[2022-06-08T12:03:22.828+0000][1092][gc,metaspace] GC(1003) Metaspace: 72704K(74660K)->72704K(74660K) NonClass: 63763K(65112K)->63763K(65112K) Class: 8941K(9548K)->8941K(9548K)
[2022-06-08T12:03:22.828+0000][1092][gc ] GC(1003) Pause Young (Normal) (G1 Evacuation Pause) 672M->59M(1024M) 2.876ms
[2022-06-08T12:03:22.828+0000][1092][gc,cpu ] GC(1003) User=0.01s Sys=0.01s Real=0.00s
[2022-06-08T12:03:22.828+0000][1092][safepoint ] Safepoint "G1CollectForAllocation", Time since last: 1362013335441 ns, Reaching safepoint: 130481 ns, At safepoint: 2950304 ns, Total: 3080785 ns
[root@ip-172-31-34-89 ~]# ll /var/log/mongodb/
total 228
-rw-r-----. 1 mongod mongod 231990 Jun 2 15:00 mongod.log
[root@ip-172-31-34-89 ~]# tail /var/log/mongodb/mongod.log
2022-06-02T11:31:10.858+0000 I NETWORK [conn26] received client metadata from 127.0.0.1:32988 conn26: { driver: { name: "mongo-java-driver|legacy", version: "3.12.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.18.0-348.23.1.el8_5.x86_64" }, platform: "Java/Red Hat, Inc./1.8.0_312-b07" }
2022-06-02T11:31:10.860+0000 I NETWORK [conn27] received client metadata from 127.0.0.1:32990 conn27: { driver: { name: "mongo-java-driver|legacy", version: "3.12.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.18.0-348.23.1.el8_5.x86_64" }, platform: "Java/Red Hat, Inc./1.8.0_312-b07" }
2022-06-02T11:31:10.865+0000 I NETWORK [listener] connection accepted from 127.0.0.1:32992 #28 (6 connections now open)
2022-06-02T11:31:10.865+0000 I NETWORK [listener] connection accepted from 127.0.0.1:32994 #29 (7 connections now open)
2022-06-02T11:31:10.865+0000 I NETWORK [conn28] received client metadata from 127.0.0.1:32992 conn28: { driver: { name: "mongo-java-driver|legacy", version: "3.12.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.18.0-348.23.1.el8_5.x86_64" }, platform: "Java/Red Hat, Inc./1.8.0_312-b07" }
2022-06-02T11:31:10.865+0000 I NETWORK [listener] connection accepted from 127.0.0.1:32996 #30 (8 connections now open)
2022-06-02T11:31:10.867+0000 I NETWORK [conn30] received client metadata from 127.0.0.1:32996 conn30: { driver: { name: "mongo-java-driver|legacy", version: "3.12.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.18.0-348.23.1.el8_5.x86_64" }, platform: "Java/Red Hat, Inc./1.8.0_312-b07" }
2022-06-02T11:31:10.869+0000 I NETWORK [conn29] received client metadata from 127.0.0.1:32994 conn29: { driver: { name: "mongo-java-driver|legacy", version: "3.12.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.18.0-348.23.1.el8_5.x86_64" }, platform: "Java/Red Hat, Inc./1.8.0_312-b07" }
2022-06-02T15:00:24.606+0000 I NETWORK [listener] connection accepted from 127.0.0.1:35836 #31 (9 connections now open)
2022-06-02T15:00:24.607+0000 I NETWORK [conn31] received client metadata from 127.0.0.1:35836 conn31: { driver: { name: "mongo-java-driver|legacy", version: "3.12.1" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.18.0-348.23.1.el8_5.x86_64" }, platform: "Java/Red Hat, Inc./1.8.0_312-b07" }