
Component family |
File/Input |
|
Function |
tApacheLogInput reads the |
|
Purpose |
tApachLogInput helps to |
|
Basic settings |
Property type |
Either Built-in or Repository. Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-in: No property data stored |
|
|
Repository: Select the repository |
|
Schema and Edit |
A schema is a row description, it defines the number of fields to be processed and Since version 5.6, both the Built-In mode and the Repository mode are In the context of tApacheLogInput usage, the schema is |
|
|
Built-in: You can create the |
|
|
Repository: You have already |
|
File Name |
Name of the file and/or the variable to be processed. For further information about how to define and use a variable in |
|
Die on error |
Select this check box to stop the execution of the Job when an |
Advanced settings |
Encoding |
Select the encoding type from the list or select Custom and define it manually. This field |
|
tStatCatcher Statistics |
Select this check box to gather the processing metadata at the Job |
Global Variables |
NB_LINE: the number of rows processed. This is an After 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 |
tApacheLogInput can be used with other components or as |
|
Limitation |
n/a |
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.
-
Drop a tApacheLogInput component and a
tLogRow component from the Palette onto the design workspace. -
Right-click on the tApacheLogInput component
and connect it to the tLogRow component using a
Main Row link. -
In the design workspace, select tApacheLogInput.
-
Click the Component tab to define the basic
settings for tApacheLogInput. -
If desired, click the Edit schema button to
see the read-only columns. -
In the File Name field, enter the file path
or browse to the access-log file you want to read. -
In the design workspace, select tLogRow and
click the Component tab to define its basic
settings. For more information, see tLogRow -
Press F6 to execute the Job.
The log lines of the defined file are displayed on the console.