Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

JobRun - getLogItemsByJobRunId


JobRun - getLogItemsByJobRunId

Description :

This command returns the log items for a specific job run. Each log item includes the following information: type, date and message.

To get the jobKey, use the getDBKeyByGroupAndName command for the job in question. For example:

JOB_KEY=`blcli AuditJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME

To get the jobRunId, first get the job run key. The findAllRunKeysByJobKey command has an example of how to do this. Once you have the job run key, you can use the jobRunKeyToJobRunId command to get the jobRunId.

Return type : String

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

DBKey of the job.

jobRunId

Integer

Job run ID number.

Example

The following example shows how to get the list of log items for a specified job run of a specific job.

Script





blcli JobRun getLogItemsByJobRunId $JOB_KEY $JOB_RUN_ID



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*