To upgrade to ELK 6.1 I deleted all elasticsearch data and make a clean reinstall. When I connect Kibana Wazuh dashboard I take No matching indices found: No indices match pattern "wazuh-monitoring-3.x-*" error and kibana log show error below. How can I solve that issue?
Rejecting mapping update to [wazuh-monitoring-3.x-2017.12.21] as the final mapping would have more than 1 type: [wazuh, wazuh-agent]
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/d744e403-9427-4387-9bed-efde2b42bf19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/69697302-1bd7-42b2-9479-0a8e8a4d1c38%40googlegroups.com.
systemctl stop logstash
curl -XDELETE localhost:9200/_template/wazuh
curl -XDELETE localhost:9200/_template/wazuh-agent
curl https://raw.githubusercontent.com/wazuh/wazuh/3.0/extensions/elasticsearch/wazuh-elastic6-template-alerts.json | curl -XPUT 'http://localhost:9200/_template/wazuh' -H 'Content-Type: application/json' -d @-
curl https://raw.githubusercontent.com/wazuh/wazuh/3.0/extensions/elasticsearch/wazuh-elastic6-template-monitoring.json | curl -XPUT 'http://localhost:9200/_template/wazuh-agent' -H 'Content-Type: application/json' -d @-
curl https://raw.githubusercontent.com/wazuh/wazuh/3.0/extensions/elasticsearch/alert_sample.json | curl -XPUT "http://localhost:9200/wazuh-alerts-3.x-"`date +%Y.%m.%d`"/wazuh/sample" -H 'Content-Type: application/json' -d @-
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "wazuh-alerts-3.x-%{+YYYY.MM.dd}"
document_type => "wazuh"
}
}systemctl restart logstash
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+unsubscribe@googlegroups.com.
To post to this group, send email to wa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wazuh.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/8771654e-52e6-4d0c-9854-efeefaa3e3db%40googlegroups.com.
Thanks for your help. It works. I tried this procedure except that stopping logstash lot of time but I saw that is is important to stop logstash before doing any change in template or indices.I want to ask one more thing is it safe to use https://github.com/wazuh/wazuh/tree/master/extensions/elasticsearch/restore_alerts restore script for restoring wazuh 3 alert ?