Changes

Jump to: navigation, search

Centralized logging in swarm

461 bytes added, 20:50, 17 September 2018
Cluster információ
==Cluster állapota==
==='''Cluster információ===:'''
<pre>
# curl -XGET 192.168.123.71:9200/_cat/health?v
'''Dokumentum hozzáadása az index-hez:'''
Az előbb létrehozott customer index-hez adjunk hozzá egy dokumentumot. Fontos, hogy a '''-H''' header kapcsolóval megadjuk a tartalom típusát, ami JSON kell legyen. Ezen felül a -d kapcsolóval adhatjuk meg a PUT törzsét, ahol a JSON-t adjuk meg. A /_doc/ után kell megadni a dokumentum ID-t, ami az 1-es lesz.
<pre>
# curl -XPUT '192.168.123.71:9200/customer/_doc/1?pretty' -H 'Content-Type: application/json' -d '
{
"name": "John Doe"
}'
</pre>

Navigation menu