# tApacheLogInput

Reads the access-log file for an Apache HTTP server.

To effectively manage the Apache HTTP Server, it is necessary to get feedback about the activity and performance of the server as well as any problems that may be occurring.

## tApacheLogInput Standard properties

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

The Standard tApacheLogInput component belongs to the File family.

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

## Basic settings

| Properties | Description |
| --- | --- |
| Property type | <ul> <li> <p>Either <span>Built-in</span> or <span>Repository</span>. </p> </li> <li> <p> <span>Built-in</span>: No property data stored								centrally.</p> </li> <li> <p> <span>Repository</span>: Select the repository								file where the properties are stored. The fields that follow are								completed automatically using the data retrieved.</p> </li> </ul> |
| Schema and Edit<br>Schema | <ul> <li> <p>A schema is a row description, it defines the number of fields to be processed and								passed on to the next component. The schema is either <span>Built-in</span> or stored remotely in the									<span>Repository</span>.</p> <p> In the context of <span>tApacheLogInput</span> usage, the schema is								read-only.</p> </li> <li> <p> <span>Built-in</span>: You can create the								schema and store it locally for this component. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> <li> <p> <span>Repository</span>: You have already								created and stored the schema in the Repository. You can reuse it in								various projects and Job flowcharts. For more information about a component schema in its <span>Basic settings</span> tab, see <a href="https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/basic-settings-tab" target="_blank">Basic settings tab</a>.</p> </li> </ul> |
| File Name | Name of the file and/or the variable to be processed.<br><br>For further information about how to define and use a variable in a Job, see [Using contexts and variables](https://help.qlik.com/talend/r/en-US/8.0/studio-user-guide/contexts-and-variables). |
| Die on error | Select this check box to stop the execution of the Job when an<br>error occurs. Clear the check box to skip the row on error and<br>complete the process for error-free rows. If needed, you can collect<br>the rows on error using a Row &gt;<br>Reject link. |

## Advanced settings

| Properties | Description |
| --- | --- |
| Encoding | Select the encoding type from the list or select Custom and define it manually. This field<br>is compulsory for DB data handling. |
| tStatCatcher Statistics | Select this check box to gather the processing metadata at the Job<br>level as well as at each component level. |

## Global Variables

| Variables | Description |
| --- | --- |
| Global Variables | NB\_LINE:<br>the number of rows processed. This is an After variable and it returns an integer.<br><br><br>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** | tApacheLogInput<br>can be used with other components or as<br>a standalone component. It allows you to create a data flow using a<br>Row &gt; Main connection, or to<br>create a reject flow to filter specified data using a Row &gt; Reject connection. For an<br>example of how to use these two links, see [Procedure](https://help.qlik.com/talend/en-US/components/8.0/processing/textractxmlfield-tlogrow-tfileinputdelimited-tfileoutputdelimited-procedure-standard-component-drop). |

**Related concepts**

* [Reading an Apache access-log file](https://help.qlik.com/talend/en-US/components/8.0/apache-log/tapacheloginput-tlogrow-reading-apache-access-log-file-standard-component "The following scenario creates a two-component Job, which aims at reading the access-log file for an Apache HTTP server and displaying the output in the Run log console.")