How To Create Multiple Indexes In Elasticsearch

How to create multiple indexes in Elastic Search?

Issue Description: Create multiple indexes in Elasticsearch.

Resolution:

  1. Open the UiPath.Orchestrator.dll.config file. (For 2019 and below version, use Web,config)
  2. Navigate to the nLog section and create a new Elastic Search target below the previous elastic search target as below:

  1. In the above example, "robotElasticBuffer2" is the newly created target. Note properties such as name, index should be altered.
  2. After creating the target, navigate to the logger section.
  3. Create another target to write Robot logs. Following parameters to be changed:
    1. final property to be false until the last logger created.
    2. writeTo property to possess the name of the target created
    3. minLevel can be altered based on the preference. Following are the level hierarchy:
  • Critical
  • Error
  • Warn
  • Info
  • Trace
  • Verbose

Refer below: Highlighted is the new entry

  1. Restart IIS and you should see a new index being created after any job is triggered having relevant log level messages.
  2. It can be checked at "localhost:9200/_cat/indices" .