Component family |
Logs & Errors |
|
Function |
Based on the pre-defined schema, tStatCatcher gathers the Job processing metadata at |
|
Purpose |
Gathers the Job processing metadata at the Job level and at the |
|
Basic settings |
Schema |
A schema is a row description, it defines the fields to be |
|
|
Moment: Processing time and date |
|
|
Pid: Process ID |
|
|
Father_pid: Process ID of the |
|
|
Root_pid: Process ID of the root |
|
|
System_pid: Thread ID. |
|
|
Project: Project name, which the |
|
|
Job: Name of the current |
|
|
Job_repository_id: ID of the |
|
|
Job_version: Version of the |
|
|
Context: Name of the current |
|
|
Origin: Name of the component if |
|
|
Message_type: Begin or |
|
|
Message: Success or |
|
|
Duration: Time for the execution |
Global Variables |
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component is the start component of a secondary Job which |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
|
Limitation |
n/a |
This scenario collects the statistics log for the Job execution and displays it on the
Run console. Note that, since the tStatCatcher
Statistics check box is not selected for the components, the statistics log applies
solely to this specific Job.
-
Drop tFixedFlowInput, tFileOutputDelimited, tStatCatcher and tLogRow
onto the workspace. -
Link tFixedFlowInput to tFileOutputDelimited using a Row > Main
connection. -
Link tStatCatcher to tLogRow using a Row > Main
connection.
-
Double-click tFixedFlowInput to open its
Basic settings view. -
Click the Edit schema button to open the
schema editor. -
Click the [+] button to add three
columns, namely ID_Owners, Name_Customer and ID_Insurance, of the Integer and String types respectively. -
Click Ok to validate the setup and close
the editor. -
In the dialog box that appears, click Yes
to propagate the changes to the subsequent component. -
Select the Use Inline Content (delimited
file) option. -
In the Content box, enter
1;Andrew;888
. -
Double-click tFileOutputDelimited to open
its Basic settings view. -
In the File Name field, enter the full
name of the file to save the statistics data. -
Double-click tLogRow to open its
Basic settings view. -
Select Vertical (each row is a key/value
list) for a better display of the results.