# tStatCatcher

Gathers the Job processing metadata at the Job level and at the component level and transfers the log data to the subsequent component for display or storage.

Based on the pre-defined schema, tStatCatcher gathers the Job processing metadata at the Job level and at the component level when the tStatCatcher Statistics check box is selected.

## tStatCatcher Standard properties

These properties are used to configure tStatCatcher running in the Standard Job framework.

The Standard tStatCatcher component belongs to the Logs & Errors family.

The component in this framework is available in all Talend products.

## Basic settings

| Properties | Description |
| --- | --- |
| Schema | <ul> <li> <p>A schema is a row description, it defines the fields to be                                processed and passed on to the next component. In this particular                                case, the schema is read-only, as this component gathers standard                                log information including:</p> </li> <li> <p> <span>Moment</span>: Processing time and date                            </p> </li> <li> <p> <span>Pid</span>: Process ID</p> </li> <li> <p> <span>Father_pid</span>: Process ID of the                                father Job if applicable. If not applicable, Pid is                                duplicated.</p> </li> <li> <p> <span>Root_pid</span>: Process ID of the root                                Job if applicable. If not applicable, pid of current Job is                                duplicated.</p> </li> <li> <p> <span>System_pid</span>: Thread ID.</p> </li> <li> <p> <span>Project:</span> Project name, which the                                Job belongs to.</p> </li> <li> <p> <span>Job</span>: Name of the current                                Job</p> </li> <li> <p> <span>Job_repository_id</span>: ID of the                                Job's .item file stored in the repository.</p> </li> <li> <p> <span>Job_version</span>: Version of the                                current Job.</p> </li> <li> <p> <span>Context</span>: Name of the current                                context</p> </li> <li> <p> <span>Origin</span>: Name of the component if                                any</p> </li> <li> <p> <span>Message_type</span>: Begin or                                End.</p> </li> <li> <p> <span>Message</span>: Success or                                Failure.</p> </li> <li> <p> <span>Duration</span>: Time for the execution                                of a Job or a component with the <span>tStatCatcher                                    Statistics</span> check box selected.</p> </li> </ul> |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | ERROR\_MESSAGE: the error message generated by the<br>component when an error occurs. This is an After variable and it returns a string. This<br>variable functions only if the Die on error checkbox is<br>cleared, if the component has this checkbox.<br><br>A Flow variable functions during the execution of a component<br>while an After variable functions after the execution of the component.<br><br>To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from<br>it.<br><br>For more information about variables, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |

## Usage

| Usage guidance | Description |
| --- | --- |
| **Usage rule** | This component is the start component of a secondary Job which<br>triggers automatically at the end of the main Job. The processing<br>time is also displayed at the end of the log. |

**Related concepts**

* [Displaying the statistics log of Job execution](https://help.qlik.com/talend/en-US/components/8.0/logs-and-errors/tlogrow-tstatcatcher-tfixedflowinput-tfileoutputdelimited-displaying-statistics-log-of-job-execution-standard-component-this)