How to create multiple indexes in Elastic Search?
Issue Description: Create multiple indexes in Elasticsearch.
Resolution:
- Open the UiPath.Orchestrator.dll.config file. (For 2019 and below version, use Web,config)
- Navigate to the nLog section and create a new Elastic Search target below the previous elastic search target as below:
- In the above example, "robotElasticBuffer2" is the newly created target. Note properties such as name, index should be altered.
- After creating the target, navigate to the logger section.
- Create another target to write Robot logs. Following parameters to be changed:
- final property to be false until the last logger created.
- writeTo property to possess the name of the target created
- 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
- Restart IIS and you should see a new index being created after any job is triggered having relevant log level messages.
- It can be checked at "localhost:9200/_cat/indices" .