сервисы_opensearch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
сервисы_opensearch [2023/06/26 09:08]
val created
сервисы_opensearch [2024/06/23 18:08] (current)
val
Line 1: Line 1:
 ====== Сервисы OpenSearch ====== ====== Сервисы OpenSearch ======
  
 +  * [[https://​habr.com/​ru/​articles/​662527/​|Установка,​ настройка и эксплуатация стэка OpenSearch в классической среде]]
 +
 +  * https://​opensearch.org/​downloads.html
 +  * https://​opensearch.org/​docs/​latest/​quickstart/​
 +  * https://​opensearch.org/​docs/​latest/​install-and-configure/​install-opensearch/​debian/​
 +
 +===== OpenSearch =====
 +
 +<​code>​
 +# wget https://​artifacts.opensearch.org/​releases/​bundle/​opensearch/​2.14.0/​opensearch-2.14.0-linux-x64.deb
 +
 +# OPENSEARCH_INITIAL_ADMIN_PASSWORD='​Pa##​w0rd##'​ dpkg -i opensearch-2.14.0-linux-x64.deb
 +
 +# systemctl daemon-reload
 +# systemctl enable opensearch.service --now
 +</​code>​
 +  * https://​opensearch.org/​docs/​latest/​api-reference/​cat/​cat-indices/​
 +<​code>​
 +# curl -X GET https://​localhost:​9200/​_cat/​indices?​v -u '​admin:​Pa##​w0rd##'​ --insecure
 +
 +# vim /​etc/​opensearch/​opensearch.yml
 +</​code><​code>​
 +...
 +network.host:​ 127.0.0.1
 +...
 +plugins.security.disabled:​ true
 +...
 +</​code><​code>​
 +# curl -X GET '​http://​localhost:​9200/​_cat/​indices?​pretty'​
 +</​code>​
 +
 +  * [[Сервисы ELK#​Примеры запросов]]
 +
 +===== OpenSearch Dashboard =====
 +
 +  * [[https://​opensearch.org/​docs/​latest/​install-and-configure/​install-dashboards/​debian/​|Installing OpenSearch Dashboards (Debian)]]
 +  * https://​opensearch.org/​docs/​latest/​install-and-configure/​install-dashboards/​plugins/​
 +  * [[Сервисы ELK#​Kibana]]
 +
 +<​code>​
 +# wget https://​artifacts.opensearch.org/​releases/​bundle/​opensearch-dashboards/​2.14.0/​opensearch-dashboards-2.14.0-linux-x64.deb
 +
 +# vim /​etc/​opensearch-dashboards/​opensearch_dashboards.yml
 +</​code><​code>​
 +...
 +server.host:​ "​192.168.X.10"​
 +...
 +#​opensearch.hosts:​ [https://​localhost:​9200]
 +opensearch.hosts:​ [http://​localhost:​9200]
 +...
 +#​opensearch_security.multitenancy.enabled:​ true
 +#​opensearch_security.multitenancy.tenants.preferred:​ [Private, Global]
 +#​opensearch_security.readonly_mode.roles:​ [kibana_read_only]
 +...
 +</​code><​code>​
 +
 +? /​usr/​share/​opensearch-dashboards/​bin/​opensearch-dashboards-plugin remove securityDashboards --allow-root
 +
 +# systemctl restart opensearch-dashboards
 +
 +</​code>​
 +
 +===== Logstash =====
 +
 +  * [[https://​opensearch.org/​docs/​latest/​tools/​logstash/​index/​]]
 +
 +<​code>​
 +# wget https://​artifacts.opensearch.org/​logstash/​logstash-oss-with-opensearch-output-plugin-8.6.1-linux-x64.tar.gz
 +~/​logstash-8.6.1#​ bin/​logstash -e "input { stdin {} } output { stdout {} opensearch {} }"
 +</​code>​
 +
 +===== Filebeat =====
 +
 +  * [[https://​opensearch.org/​docs/​1.0/​clients/​agents-and-ingestion-tools/​index/​]]
 +
 +<​code>​
 +# wget https://​github.com/​mnorrsken/​beats/​releases/​download/​v7.10.1/​filebeat-oss-7.10.1-amd64.deb
 +
 +# filebeat modules list
 +</​code>​
сервисы_opensearch.1687759736.txt.gz · Last modified: 2023/06/26 09:08 by val