Home > Commands N-Z > Commands R

RELOG


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Extracts performance counters from performance counter logs into other formats, such as text-TSV (for tab-delimited text), text-CSV (for comma-delimited text), binary-BIN, or SQL.


Syntax

RELOG /?

RELOG [Filename [Filename ...]] [-a] [-b M/d/yyyy [[hh:]mm:]ss] [-c Path [Path ...]] [-cf Filename] [-config Filename] [-e M/d/yyyy [[hh:]mm:]ss] [-f {bin|csv|tsv|SQL}] [-o {output file | DSN!counter_log}] [-q] [-t value]


Parameters
Filename [Filename ...] (NTXP)
Specifies the pathname of an existing performance counter log. You can specify multiple input files.

Switches
/? (NTXP)
Displays help.
-a (NTXP)
Appends output file instead of overwriting. This option does not apply to SQL format where the default is always to append.
-b M/d/yyyy [[hh:]mm:]ss (NTXP)
Specifies begin time for copying first record from the input file. Date and time must be in this exact format M/d/yyyy hh:mm:ss.
-c Path [Path ...] (NTXP)
Specifies the performance counter path to log. To specify multiple counter paths, separate them with a space and enclose the counter paths in quotation marks.
-config (NTXP)
Specifies the pathname of the settings file that contains command-line parameters.
The contents of the setting file should have the format:
      [command_line_option]
      value

      for example:
      [o]
      output.txt
      [f]
      csv
      [t]
      5
-cf Filename (NTXP)
Specifies the pathname of the text file that lists the performance counters to be included in a relog file. Use this option to list counter paths in an input file, one per line. Default setting is all counters in the original log file are relogged.
-e M/d/yyyy [[hh:]mm:]ss (NTXP)
Specifies end time for copying last record from the input file. Date and time must be in this exact format M/d/yyyy hh:mm:ss.
-f {bin|csv|tsv|SQL} (NTXP)
Specifies the pathname of the output file format. The default format is bin. For a SQL database, the output file specifies the DSN!counter_log. You can specify the database location by using the ODBC manager to configure the DSN (Database System Name).
-o {output file | DSN!counter_log} (NTXP)
Specifies the pathname of the output file or SQL database where the counters will be written.
-q (NTXP)
Displays the performance counters and time ranges of log files specified in the input file.
-t value (NTXP)
Specifies sample intervals in "n" records. Includes every nth data point in the relog file. Default is every data point.
Specify that input files are inserted into output files at intervals of every nth record. By default, data is relogged from every record.

Related

none.


Notes

Counter path format:

The general format for counter paths is: [\\Computer]\object[parent/instance#index]\counter] where:

The parent, instance, index, and counter components of the format may contain either a valid name or a wildcard character. The computer, parent, instance, and index components are not necessary for all counters.

You determine the counter paths to use based on the counter itself. For example, the LogicalDisk object has an instance index, so you must provide the #index or a wildcard. Therefore, you could use the format:

\LogicalDisk(*/*#*)\*

In comparison, the Process object does not require an instance index. Therefore, you could use the format:

\Process(*)\ID Process

The list of the possible formats:

If a wildcard character is specified in the parent name, all instances of the specified object that match the specified instance and counter fields will be returned.

If a wildcard character is specified in the instance name, all instances of the specified object and parent object will be returned if all instance names corresponding to the specified index match the wildcard character.

If a wildcard character is specified in the counter name, all counters of the specified object are returned.

Partial counter path string matches (for example, pro*) are not supported.

Counter files:

Counter files are text files that list one or more of the performance counters in the existing log. Copy the full counter name from the log or the -q output in [\\Computer \ object [instance] \ counter] format. List one counter path on each line.

Copying counters:

When executed, Relog copies specified counters from every record in the input file, converting the format if necessary. Wildcard paths are allowed in the counter file.

You can specify that your output logs include records from before begin-time (-b) to provide data for counters that require computation values of the formatted value. The output file will have the last records from input files with timestamps less than the end-time (-e).


Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NTXP NT2003