Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Latest commit

 

History

History

elasticsearch

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Setting mappings template

Elasticsearch will receive data from the Node application. The way in which Elasticsearch stores and index that data is important so you can search better.

  • To do this define a template in Elasticsearch running the following command:
curl -XPUT -d @mappings-template.json https://https://search-csp-server-**********.region.es.amazonaws.com/_template/cspdata

Elasticsearch analysis

You can use example file csp-report-example.json

curl http://localhost/reportOnly/index -H "Host: csp.yoursite.com" -XPOST -d @csp-server/example/csp-report-example.json

Elasticsearch management

Application sends reports received by POST to Elasticsearch endpoint defined in nodejs/config.js

curl -XDELETE https://search-csp-server-**********.region.es.amazonaws.com/cspdata-2016.07.09