Gilles9507
Contributor
Contributor

Send logs from workflow

Hi,

Would someone know how to send the workflow's logs via email?

I know how to use the send notification to send an email but can't get the workflow's logs into the body.

I mean the log highlited below:

logs-orchestrator.jpg

Thanks a lot.

Gilles

Tags (2)
0 Kudos
2 Replies
cdecanini_
VMware Employee
VMware Employee

Check if the workflow does some Server.log as well. If so you can get the workflow log events using the logEvents property on the workflow token.

The workflow token is returned by the execute method on a workflow. You will also need to pass parameters. A good example of this is the workflow "Start workflows in parallel".

If the workflow only does System.log then the logs are not persisted outside of the filesystem logs (not in the vCO DB) so you cannot get to them. The only solution is then to duplicate the workflow and to include the server.log.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
Gilles9507
Contributor
Contributor

Hi Christophe,

Thanks a lot. It makes more sense now, I will have a look if I can implement it now 😉

Cheers,

Gilles

0 Kudos