Hier ein paar hinweise für Abfragen von Index via Web Browser URL.
Erstens hat ElasticSearch eine gute Web Site mit Dokumentation untereHere some hints how to query elasticSearch from your web browser
First of all ElasticSearch has an excellent web site with a lot of documentation:
https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html
Für meine Tests für den Index, den ich aus den Workflows erstelle war folgende Funktion sehr hilfreich:
Abfragen
...
To inspect your indexes following functions are very helpfull:
Queries
search (_search)
Mit with "_search" kann ich innerhalb bestimmter Objekttypen/Index suchen.you can search for specific index types. e.g. "workflow" index types:
http://172.17.2.91:9200/workflow/_search
...
display (?pretty)
Mit with "?pretty" werden die einzelnen Objekte sauber formatiertthe content will be displaied in a structured way
http://172.17.2.91:9200/workflow/_search?pretty
...
amount of objects (&size)
Wenn mehr als 10 Objekte ausgegeben werden müssen nützt die Option if you wnat to see more than 10 objects ausgegeben use the option "size". Size bestimmt die Anzahl Objekte die ausgegeben werden. z.B. "Size" defines the amount of ibjects to display e.g. 100
http://172.17.2.91:9200/workflow/_search?pretty&size=100
...
filter (&q=<feld>:<wert>)
Oder nach Inhalt nur Objekte deren Feld "status" den Inhalt "11" hat.IF you want to filter the objects you can use the function "&q=" e.g. filter attribute "status" for content "11":
http://172.17.2.91:9200/workflow/_search?pretty&size=100&q=status:11
Bei Leerschlägen den Ausdruck einfach in Klammern setzenIf there are spaces in the filter expression use brackets:
http://172.17.2.91:9200/workflow/_search?pretty&size=100&q=status:(NOT DENIED)
Template laden
Ich musste für die Erweiterung des Workflow Dashboard ein sogenanntes Mapping Template laden. Das ist eine JSON Datei, die die Beschreibung des Worklfow Daten Index beschreibt.
curl -XPOST http://localhost:9200/_template/workflow_template -d @es_workflow-template.json
boolean expression
You can use boolean expression to define a more complex query (use "\" to escape blanks in attribute names like "Object Name"):
nodes (_node/os?pretty)
If you want to see how many nodes and cpu's are used by ES
http://172.17.2.91:9200/_nodes/os?pretty
index statistics (/<index>/_stats?pretty)
if you need statistics about your index you can use this command like
acd30.skypro.ch:3191/elasticsearch/audit*/_stats?pretty
index catalog (/_cat)
To see the catalog of all indexes with count and size (v=true to show column header):
https://sdeb-idmas-q005.sys.schwarz:3190/elasticsearch/_cat/indices/*?v=true
From version 3.x use Audit Proxy Port
Starting with version 3.x you can use the Audit Proxy using the elasticsearch endpoint to search within specific indexes.
e.g. searching a specific CN with a report index
https://acd30.skypro.ch:3190/elasticsearch/report-default-2021.09.09/_search?pretty&q=cn:1000057376
TTL
To test TTL, you should know that you cannot view the TTL field value. You need to explicitly ask for it with body request parameter fields. Look at this articel
https://makina-corpus.com/blog/metier/2015/elasticsearch-how-to-test-working-ttl-documents