3

I want to programatically dump logs from OpenWhisk in to an external service. I can do this by capturing log output and then posting it at the end of every action but this adds overhead to my function.

Is there a way to get this data from the OpenWhisk API similar to wsk activation logs ACTIVATION_ID?

Ed Shee
  • 931
  • 1
  • 7
  • 22

1 Answers1

2

Action logs are available through the platform API. Console output from actions (stdout or stderr) is stored in the activation records.

Activation records can be accessed by sending a HTTP request to the following endpoint: /namespaces/{namespace}/activations/{activationid}/logs

Client libraries for accessing the API are available for multiple languages.

James Thomas
  • 4,303
  • 1
  • 20
  • 26