NAME

parse-log - parse HXDS stage log files and write output to an rdb table


SYNOPSIS

parse-log [options] path1 [ path2 ... ]


OPTIONS

-help

Print this

-verbose

Print the name of the log file to STDERR.

-hdr

Specify the name of the rdb table with rows `field' and `col'. Like the defs_file parameter used in rdb2pg.

-prefix

The prefix for the log files of interest. Aperture logs are found in aperlog.* files, so -prefix should be set to `aper'.

-fix

A hash where the keys are the original column names and the values are the column names in the output file. -fix 5fpc=_5fpc means that the input table contains a column named 5fpc and you would like the output table to call the same column _5fpc. Useful for altering column names to PostgreSQL friendly names.

-output

Specify the name of the output rdb table.

-split

Split the output up into one file per directory, using the name of the directory as the rdb file name.


DESCRIPTION

parse-pha parses stage log file headers and outputs an rdb table suitable for ingestion into Postgres. It's main claim to fame is that it re-writes the IRIG time as UT. It also knows how to search directories for stage log files.

The files to be parsed are specified on the command line. They may be specified as:

When parse-log searches directories, it looks for files matching the Perl regular expression /{$prefix}log.\d+$/.

The date column is re-written as an ISO compliant date.