4.4.1.5 Creating an Elasticsearch Target

To create an Elastic Search target:

  1. On the Catalog page, click Create New Item.
  2. Hover the mouse over Target and select Elastic Search from the submenu.
  3. On the Type Properties screen, enter the following details:
    • Name: Enter a unique name for the target. This is a mandatory field.
    • Display Name: Enter a display name for the target. If left blank, the Name field value is copied.
    • Description
    • Tags
    • Target Type: The selected target is displayed.
  4. Click Next.
  5. On the Target Details screen, enter the following details:
    • Connection: Select an Elastic Search connection from the drop-down list.
    • Index Name: An Elasticsearch index is a collection of documents with similar characteristics. You can create an index name only in lowercase.

      Example format: index.name, your index in elastic search will beindex_name.

  6. Click Next.
  7. On the Shape screen, select one of the methods to define the shape:
    • Select Existing Shape: Select one of the existing shapes from the drop-down list.

    • Manual Shape: Select this option to manually define a shape. You can also add to, or remove fields from, an existing shape. Enter the following details:
      • Shape Name: Enter a name for the shape.
      • Clear Fields: Click to delete all the fields in the shape.
      • Key: Select one or more fields as key, which will be used as the ID field.

        Example: {"_index":"json_data","_type":"_doc","_id":"2","_score":1.0,"_source":{"address":"Mumbai","serial":"2","clientName":"Joe"}}]}}

        Note:

        • Any update to the value will result in new entry rather than updating previous value.
        • If a key has a null value, ElasticSearch will autogenerate the key. In the example above, ID is 2, because serial is selected as the key field. If record has null in serial field: {"address":"Mumbai","serial":null","clientName":"Joe"}, then ID will be autogenerated by Elasticsearch.
        • Index is json_data which is provided in previous step, ID will be value of each record.

      • Field Name: Add the necessary fields.
      • Field Type: Select the field data type from the drop-down list.
  8. Click Save.