apache_log_reader

The sample table UDF apache_log_reader reads the contents of an Apache access log or an Apache error log into table data. It is implemented in the file apache_log_reader.cxx in the samples directory.

A sample access log (apache_access.log) and sample error log (apache_error.log) are included in the samples directory.

The apache_log_reader sample opens the log file in the _open_extfn method. It reads in the data and parses it into the schema supported by the procedure in the _fetch_into_extfn method. It then closes the log file using the _close_extfn method.

Related reference
_open_extfn
_fetch_into_extfn
_close_extfn