Send Robot logs to Multiple Locations in Automation Suite

Send Robot logs to Multiple Locations in Automation Suite

  1. Complete the basic configuration in Automation Suite - Saving robot logs to Elasticsearch
  2. Copy the json template described in the advanced configuration section in the aforementioned documentation
  3. The following example will send logs to both Elasticsearch and the Orchestrator’s database. If you need to send logs to both Elasticsearch, Splunk and the database, you can change writeTo section to "writeTo": "robotElasticBuffer,Splunk,database".
{

“Nlog”: {

“targets”: {

“robotElasticBuffer”: {

"type": "BufferingWrapper",

"flushTimeout": 5000,

"target": {

 "type": "SplitGroup",

 "targets": [

  {

   "type": "ElasticSearch",

   "name": "robotElastic",

   "uri": "https://8545d43a0c304f8f93369abe93762d17.ges-prod-emukc01.jpmchase.net:9243",

   "requireAuth": true,

   "username": "H042142",

“password”: “r9BKofRzHc7H9kaX”,

   "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",

   "documentType": "",

   "enableApiVersioningHeader": true,

   "includeAllProperties": true,

   "layout": "${message}",

  },

  {

   "type": "ElasticSearch",

   "name": "robotElastic",

   "uri": "https://e0216341a6324a26825efcc83d197600.ges-prod-emukc02.jpmchase.net:9243",

   "requireAuth": true,

   "username": "H042142",

   "password": "r9BKofRzHc7H9kaX",

   "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",

   "documentType": "",

   "enableApiVersioningHeader": true,

   "includeAllProperties": true,

   "layout": "${message}",

  }

 ]

}

}

},

“rules”: {

“20_Robot_Primary”: { “writeTo”: “robotElasticBuffer,database” }

}

}

}