view_log() | Teradata Package for Python - view_log() - Teradata Package for Python

Teradata® Package for Python User Guide

Product
Teradata Package for Python
Release Number
17.10
Published
May 2022
Language
English (United States)
Last Update
2022-08-18
dita:mapPath
rsu1641592952675.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4006
lifecycle
previous
Product Category
Teradata Vantage

Use the view_log() function to view log on Vantage. Logs are pulled from 'scriptlog' file or 'byom.log' on database node.

Optional arguments:
  • log_type specifies the log to view.
    • If set to 'script', script log will be pulled from database node;
    • If set to 'byom', byom log is pulled from database node.

    Default value is 'script'.

  • num_lines specifies the number of lines to be read and displayed from log.

    The default value is 1000.

Example 1: View script log

view_log(log_type="script", num_lines=200)

Example 2: View byom log

view_log(log_type="byom", num_lines=200)