How to catch information about your jobs’ executions / Errors

How to catch information about your jobs’ executions / Errors

 

In the Palette:

Click the Logs & Errors folder.

Click the tDie component and drop it on the Job Designer instead of the tMsgBox.

Double-click the tDie to display its Componentview.

In the Comment field, press Ctrl+Space to display the autocompletion list. In this list, click the context.error_message variable.

Talend log handling

Talend log handling

 

In the Job Designer:

Double-click the tWarn to display itsComponent view.

In the Warn message field, type in “Job Start”.

Right-click the tWarn, select Trigger >OnSubjobOk in the menu and then click thetRowGenerator to create a link.

 

Talend log handling

Talend log handling

 

In the Palette:

Click the tLogCatcher and drop it on the Job Designer to the top right of the Job Designer.

 

Talend log handling

Talend log handling

 

In the Job Designer:

Right-click the tLogCatcher, hold and drag to the tLogRow to create a row link.

 

1 Hour Virtual Assistance Services by a Talend Expert

 

 

2 Responsesso far.

  1. austin smith says:

    I am new to Talend and I have a task that I would like to check with you that how can it be achieved. So I want to create one standard job that deals with Error Logging , lets say we name it ERROR_LOGGING_JOB. Whenever any other Job runs and throws an error I want ERROR_LOGGING_JOB to be called by any job that throws the errors so errors are logged in Error table by running ERROR_LOGGING_JOB .

    I know how to use Error logging such as tLogCatcher, tDie, and tWarn but I dont know how to achieve above mentioned scenario.

    Thanks

    • ahallam says:

      Hi Austin,

      Yes i understand your scenarion.
      In this case it’s better to create “JOBLET” and not a job.
      In this joblet you add the logcatchers and send the logs to the appropriate output ( where you would like to save your logs i.r a database or a file )
      then you drag and drop this joblet in all your jobs.

      Does this make sense ?

      Thanks

Leave a Reply