Slide 27
Slide 27 text
ElasticSearch
27
$ curl -XPUT localhost:9200/logs/_doc/1 --header
'Content-Type: application/json' -d '{
"dirección_ip":"127.0.0.1","date":"01-01-2020"}'
{"_index":"logs","_type":"_doc","_id":"1","_version":1,"result":"cr
eated","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":
0,"_primary_term":1}
$ curl -XGET localhost:9200/logs/_search?pretty