root@SELKS:/opt/selks/Scripts/Configs/SELKS4# systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2017-10-13 04:16:45 BST; 13min ago
Docs: http://www.elastic.co
Process: 725 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 740 (java)
Tasks: 70 (limit: 4915)
CGroup: /system.slice/elasticsearch.service
└─740 /usr/bin/java -Xms2g -Xmx2g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOn
Oct 13 04:16:44 SELKS systemd[1]: Starting Elasticsearch...
Oct 13 04:16:45 SELKS systemd[1]: Started Elasticsearch.
Thanks it works!However, since I modified the /etc/elasticsearch.yml to add the 2 old lines trying to fix the issue (and restarting elasticsearch) I have the following error in my kibana dashboard:
Error: Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"script_exception","reason":"link error","script_stack":["doc['alert.signature_id'].value"," ^---- HERE"],"script":"doc['alert.signature_id'].value","lang":"expression"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"logstash-tls-2017.10.12","node":"oaPcRbG2QDWKrYScFsjkqg","reason":{"type":"script_exception","reason":"link error","script_stack":["doc['alert.signature_id'].value"," ^---- HERE"],"script":"doc['alert.signature_id'].value","lang":"expression","caused_by":{"type":"parse_exception","reason":"Field [alert.signature_id] does not exist in mappings"}}}]},"status":500} at https://192.168.1.183/bundles/kibana.bundle.js?v=15554:29:12529 at Function.Promise.try (https://192.168.1.183/bundles/commons.bundle.js?v=15554:82:22246) at https://192.168.1.183/bundles/commons.bundle.js?v=15554:82:21602 at Array.map (native) at Function.Promise.map (https://192.168.1.183/bundles/commons.bundle.js?v=15554:82:21557) at callResponseHandlers (https://192.168.1.183/bundles/kibana.bundle.js?v=15554:29:12145) at https://192.168.1.183/bundles/kibana.bundle.js?v=15554:29:400 at processQueue (https://192.168.1.183/bundles/commons.bundle.js?v=15554:38:23621) at https://192.168.1.183/bundles/commons.bundle.js?v=15554:38:23888 at Scope.$eval (https://192.168.1.183/bundles/commons.bundle.js?v=15554:39:4619)I have rebooted the boxI reset the logs and stats as per your wiki
Also, just noticed something, in the elasticsearch it references "logstash-tls-2017.10.12".I looked in /var/log/elasticsearch and I can only see:logstash-plain-2017.10.11So "plain" instead of "tls" and a day earlier.Now that I have done my test again, the error references 2017.10.13 and in the /var/log there is only 2710.10.12 (also as plain and not tls)
Hi Pevma,This is exactly what I did when trying to fix the unassigned warning:- Edited /etc/elasticsearch/elasticsearch.yml- Added the following two lines at the end:index.number_of_shards: 1
index.number_of_replicas: 0
- Restarted elasticsearch- I got reds everywhere in Scirius- so I removed those extra lines- restarted elasticsearch- In scirius I got the yellow unassigned warnings backMeaning back to square one, so this is when I originally posted this post.In the mean time, I also noticed that my Kibana dashboards did not display any data anymore!And saw the error at the top (which I have included the details in my previous comment)I did run the command you gave me to clear the unassigned shard warnings. It works, everything is green in Scirius, I can also see alerts being generated.But I still have the issue with my kibana dashboards not displaying any data and with that error on the top.