Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Search Commands

Refer to https://www.elastic.co/guide/en/elasticsearch/guide/current/_talking_to_elasticsearch.html

You can use "curl" command to query elastic search:

curl -XGET 'http://uxlpdipacd00001:5151/audit-default-2020*/_search?pretty&size=1000&q=Object\%20Name:00386109914%20or%20Object\%20Name:00386109914' -u admin:changeit

You can pipe the output into a file with the pipe command:

curl -XGET 'http://uxlpdipacd00001:5151/audit-default-2020*/_search?pretty&size=1000&q=Object\%20Name:00386109914%20or%20Object\%20Name:00386109914' -u admin:changeit > test.out

Report Commmands

Automatic installation of default report templates

...

If you extend your elasticSearch with new content type you have to add a "mapping template". This is a JSON file, that discribes the content of your index. For example to load the mapping template for workflow index: 

 


curl -XPUT http://localhost:9200/_template/workflow_template -d @es_workflow-template.json
curl -XPOST http://localhost:9200/_template/workflow_template -d @es_workflow-template.json