Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Report Commmands

Automatic installation of default report templates

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

"curl -XDELETE http://ES_HOST:9200/asreports"

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 @DefaultUserReport.json

To add an individual report templates with "curl"

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:

curl 'http://YOUR_ES:9200/asreports/_search'; > asreports.json

or you can use your browser and open following URL

http://YOUR_ES:9200/asreports/_search

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
  • No labels