Page tree

Versions Compared

Key

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

Report Commmands

Automatic installation of default report templates

If you want to reports automatically you can remove "asreports" index in ES by command

...

and restart AuditServer, default templates will be installed automatically

Manual installation of report templates

Or you can install them manually with "curl" command:

...

curl XPOST http://ES_HOST:9200/asreports/content -d @ReportName.json

Export report templates

To export all report templates from ES you can use also a "curl" command:

...

Save page as file (probably better in chrome or firefox)

Mapping Template

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