сервисы_opensearch

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервисы_opensearch [2024/06/21 06:58]
val
сервисы_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/​downloads.html
   * https://​opensearch.org/​docs/​latest/​quickstart/​   * https://​opensearch.org/​docs/​latest/​quickstart/​
   * https://​opensearch.org/​docs/​latest/​install-and-configure/​install-opensearch/​debian/​   * https://​opensearch.org/​docs/​latest/​install-and-configure/​install-opensearch/​debian/​
 +
 +===== OpenSearch =====
  
 <​code>​ <​code>​
Line 12: Line 16:
 # systemctl daemon-reload # systemctl daemon-reload
 # systemctl enable opensearch.service --now # systemctl enable opensearch.service --now
-</code><​code>+</​code>​
   * https://​opensearch.org/​docs/​latest/​api-reference/​cat/​cat-indices/​   * https://​opensearch.org/​docs/​latest/​api-reference/​cat/​cat-indices/​
-</​code>​<​code>​+<​code>​
 # curl -X GET https://​localhost:​9200/​_cat/​indices?​v -u '​admin:​Pa##​w0rd##'​ --insecure # curl -X GET https://​localhost:​9200/​_cat/​indices?​v -u '​admin:​Pa##​w0rd##'​ --insecure
  
 # vim /​etc/​opensearch/​opensearch.yml # vim /​etc/​opensearch/​opensearch.yml
 +</​code><​code>​
 +...
 +network.host:​ 127.0.0.1
 ... ...
 plugins.security.disabled:​ true plugins.security.disabled:​ true
 ... ...
 +</​code><​code>​
 # curl -X GET '​http://​localhost:​9200/​_cat/​indices?​pretty'​ # curl -X GET '​http://​localhost:​9200/​_cat/​indices?​pretty'​
-</code><​code>+</​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/​   * 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
  
-</​code><​code>​ 
 # vim /​etc/​opensearch-dashboards/​opensearch_dashboards.yml # vim /​etc/​opensearch-dashboards/​opensearch_dashboards.yml
 +</​code><​code>​
 ... ...
-server.host:​ "​192.168.20.10"+server.host:​ "​192.168.X.10"
 ... ...
 +#​opensearch.hosts:​ [https://​localhost:​9200]
 opensearch.hosts:​ [http://​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+/​usr/​share/​opensearch-dashboards/​bin/​opensearch-dashboards-plugin remove securityDashboards --allow-root
  
 # systemctl restart opensearch-dashboards # systemctl restart opensearch-dashboards
  
-https://​opensearch.org/​docs/​latest/​tools/​logstash/​index/​+</​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 # 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 {} }" ~/​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
  
-https://​opensearch.org/​docs/​1.0/​clients/​agents-and-ingestion-tools/​index/​ +# filebeat ​modules list
-wget http://​62.113.231.233/​vendor/​pool/​main/​f/​filebeat/​filebeat-oss-7.12.1-amd64.deb+
 </​code>​ </​code>​
сервисы_opensearch.1718942285.txt.gz · Last modified: 2024/06/21 06:58 by val