Book Image

VMware vRealize Orchestrator Cookbook

By : Daniel Langenhan
Book Image

VMware vRealize Orchestrator Cookbook

By: Daniel Langenhan

Overview of this book

Table of Contents (15 chapters)
VMware vRealize Orchestrator Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with logs


In this recipe, we will look into how logging works in Orchestrator. You will learn how to create log entries and where they are stored.

Getting ready

We just need a working Orchestrator, and you will need the rights to create new workflows and run them. We will work with the Orchestrator client.

Additionally, we need administrative (root) access to the Orchestrator's operating system.

How to do it...

  1. Create a new workflow.

  2. Drag all log elements from the Log section into the workflow and arrange them as shown here:

  3. Create the following variables:

    Name

    Type

    Section

    Binds with

    logText

    String

    IN

    Transports error text

    logObject

    String

    IN

    Transports object text

  4. Bind each log element with the required in-parameter.

  5. Save and exit the workflow.

  6. Run the workflow and enter two different phrases such as LogText and LogObject.

  7. Check the result of the workflow by clicking on Logs as seen in the following screenshot. Also check the Events tab of the workflow.

  8. Check the log files...