# Elasticsearch Bulk API

This release contains an errand that enables configuration of elasticsearch
via its Bulk API. Features of this API are documented [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html).

To use your own bulk requests with this release, take the following steps:
  * replace the contents of `src/bulk_request/bulk_request` with the requests you would like to make. There are some examples provided
  * `bosh deploy`
  * `bosh run errand bulk_request`



# Elasticsearch Bulk API

The bulk api allows multiple actions to be sent to ES in 1 request. The full documentation is located [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html) on the offical ES site.

To use your own bulk requests with this release, take the following steps:

  * Fork the [logsearch-addons](https://github.com/logsearch/example-logsearch-addon-boshrelease) bosh release
  * Modify the request file in `logsearch-addons/src/create_bulk_request/request`
  * Colocate the create_bulk_request job template from the logsearch-addons onto the logsearch-boshrelease maintenance vm
  * Include the logsearch-addons under the releases section of your manifest
  * Include the path to the bulk request files under elasticsearch_config.bulk_data_files (this supports multiple files, which are configurable in the [logsearch-addons](https://github.com/logsearch/example-logsearch-addon-boshrelease) bosh release)
  * Upload the addons release and deploy.

Your manifest should look something like:

```yaml
...

releases:
- name: logsearch
  version: latest
- name: logsearch-addons
  version: latest

...

- instances: 1
  name: maintenance
  networks:
  - name: default
  resource_pool: maintenance
  templates:
  - name: create_bulk_request
    release: logsearch-addons
  - name: elasticsearch_config
    release: logsearch
  - name: curator
    release: logsearch
	properties:
    elasticsearch_config:
      bulk_data_files: [/var/vcap/packages/create_bulk_request/request]

```

Update the bulk api docs
Update the bulk api docs

[#116767361]

Signed-off-by: Derik Evangelista <70505a31063ee00d819d9d243caf579a659cbb4f@pivotal.io>
