ningyougang commented on issue #3421: Add ElasticSearch Log Store
URL: 
https://github.com/apache/incubator-openwhisk/pull/3421#issuecomment-397568584
 
 
   @dubee  , @markusthoemmes 
   
   I am testing this feature. but found the user log can't be sent to 
`ElasticSearch`, the step as followings
   * Install ElasticSearch in my env
   ```
   docker run -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" 
docker.elastic.co/elasticsearch/elasticsearch:6.3.0
   ```
   
   * Add below ansible vars to ansible/environments/distributed/group_vars/all
   ```
   userLogs_spi: whisk.core.containerpool.logging.ElasticSearchLogStoreProvider
   invoker_extraEnv:
     - CONFIG_whisk_logstore_elasticsearch_protocol: http
     - CONFIG_whisk_logstore_elasticsearch_host: ${elasticsearchIp}
     - CONFIG_whisk_logstore_elasticsearch_port: 9200
     - CONFIG_whisk_logstore_elasticsearch_path: /whisk_user_logs
     - CONFIG_whisk_logstore_elasticsearch_logSchema_userLogs: user_logs
     - CONFIG_whisk_logstore_elasticsearch_logSchema_message: namespaceId
     - CONFIG_whisk_logstore_elasticsearch_logSchema_activationId: activationId
     - CONFIG_whisk_logstore_elasticsearch_logSchema_stream: stream
     - CONFIG_whisk_logstore_elasticsearch_logSchema_time: time
   ```
   * Redeploy whisk, only found `userlogs-XXX.log` is writed to invoker 
container's /logs dir
   
   My question is that why the user logs can't be sent to `ElasticSearch`, i 
can't find any error logs in `invokerN_logs.log`, do you know the reason?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to