Elasticsearch 8.1.0 data handling

Dear experts, please don’t roast me, this is a rookies view.

If i wrote bs, any hints are highly appreciated via elasticdata@xxaxxelxx

Mechanical stuff:

You can handle all this data handling via the so called console. The console is a tool you find inside of the Kibana WebUI: Log in as elastic superuser (or something similar you created on your own), go to Management>>>Dev Tools>>>Console

The imho better way is to use curl to contact elasticsearchs REST API.


curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic:<yourpassword> https://localhost:9200

WARNING: If you want to learn abt elasticsearch data handling, avoid old tutorials, cs since version 8.0.0 the existence of so called types is obsolete. I got caught by this trap, resulting in severe headaches.

I will describe only the basic basics, useful for me. For better understanding i strongly recommend to read the online docu: https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html

The fundamental entity in elasticsearch is a so called index. I know, a man should never compare this stuff to relational databases, but this is the equivalent for a database.

You can fill an index with documents. A document is a json dataset.

Creating an index:

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.