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
Property type |
Either Built-in or Repository. |
 |
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 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
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 |
Usage
Usage rule |
tApacheLogInput |
Reading an Apache access-log file
access-log file for an Apache HTTP server and displaying the output in the Run log console.
Procedure
-
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.