Teradata Package for Python Function Reference | 17.10 - view_log - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.

Teradata® Package for Python Function Reference

Product
Teradata Package for Python
Release Number
17.10
Published
April 2022
Language
English (United States)
Last Update
2022-08-19
lifecycle
previous
Product Category
Teradata Vantage
teradataml.dbutils.dbutils.view_log = view_log(log_type='script', num_lines=1000)
DESCRIPTION:
    Function for viewing script or byom log on Vantage. Logs are pulled from 'script_log' or 'byom.log'
    file on database node.
 
PARAMETERS:
    log_type:
        Optional Argument.
        Specifies which log to view.
        If set to 'script', script log is pulled from database node.
        If set to 'byom', byom log is pulled from database node.
        Permitted Values: 'script', 'byom'
        Default Value: 'script'
        Types: str
 
    num_lines:
        Optional Argument.
        Specifies the number of lines to be read and displayed from log.
        Default Value: 1000
        Types: int
 
RETURNS:
    teradataml dataframe.
 
RAISES:
    TeradataMLException.
 
EXAMPLES:
    # View script log.
    >>> view_log(log_type="script", num_lines=200)
    >>> view_log(log_type="byom", num_lines=200)