Skip to content

RELOG Windows Command Guide

The Windows relog command allows users to extract performance counters from log files and write them into new log files for further analysis. It is a powerful tool for monitoring system performance and troubleshooting issues. By using the relog command, users can create custom log files tailored to their specific needs and easily access valuable performance data.

RELOG Syntax:

Terminal window
relog [options] [parameters]

Options:

OptionDescription
/eExtracts data from a CounterLogs File
/fInput file format (binary or tsv)
/rtReplaces existing counter data
/cfConfigures specific counters
/qDoes not display the Relog banner
/iSpecifies an additional input file
/oSpecifies an output log file
/cSpecifies the counter input object
/aConfigures alerts for trace logs
/globalApplies the specified settings globally
/bSpecifies the current buffer size
/minSpecifies the time in minutes to collect data
/maxSpecifies the time in minutes to collect data
/fSpecifies performance counter format

Parameters:

ParameterDescription
fileNameSpecifies the name of the CounterLogs file
inputDataData source or input file path
txtFileSpecifies the path to the output logfile
counterIndicates the specific counter to be configured
rangeSpecifies the date range for data extraction
startTimeSpecifies the start time for data extraction
endTimeSpecifies the end time for data extraction
pidSpecifies the process ID to monitor
intervalSpecifies the sampling interval for log extraction

RELOG Command Samples:

Extract Performance Data

Terminal window
relog PerfData.etl -o PerfData.csv -f CSV

Extracts performance data from the “PerfData.etl” file and saves it as a CSV file.

Merge Several Files

Terminal window
relog log1.etl log2.etl log3.etl -o MergedData.etl

Merges multiple log files (“log1.etl”, “log2.etl”, “log3.etl”) into a single file named “MergedData.etl”.

Change Output Format

Terminal window
relog PerfData.etl -o PerfData.txt -f TXT

Converts the performance data from the “PerfData.etl” file into a text file format (“PerfData.txt”).

Filter Based on Event Type

Terminal window
relog AppData.etl -o CriticalEvents.etl -if CriticalEvent

Filters events in the “AppData.etl” file and creates a new file (“CriticalEvents.etl”) including only the “CriticalEvent” type.

Set Time Range

Terminal window
relog PerfData.etl -o LastHourData.etl -b 01/11/2022 10:00:00 -e 01/11/2022 11:00:00

Extracts performance data from the “PerfData.etl” file within a specific time range (from 10:00:00 to 11:00:00 on 01/11/2022).

Exclude Specific Counters

Terminal window
relog PerfData.etl -o PerfDataFiltered.etl -xl "\Memory\Available Bytes"

Creates a new file (“PerfDataFiltered.etl”) excluding the counter “\Memory\Available Bytes” from the performance data in the “PerfData.etl” file.

Include Specific Counters

Terminal window
relog PerfData.etl -o PerfDataSpecific.etl -ic "\Processor(_Total)\% Processor Time"

Creates a new file (“PerfDataSpecific.etl”) including only the specific counter “\Processor(_Total)% Processor Time” from the performance data in the “PerfData.etl” file.

RELOG FAQ:

How do I use relog in Windows?

To use the relog command in Windows, execute the following command:

Terminal window
relog --option <value>

What is the purpose of the relog command in Windows?

The relog command in Windows is used to create new performance logs from data in existing log files.

How can I specify the input file for relog in Windows?

To specify the input file for relog in Windows, use the following syntax:

Terminal window
relog input.etl

Can I customize the output format when using relog in Windows?

Yes, you can customize the output format when using relog in Windows by specifying the desired format option. For example:

Terminal window
relog input.etl -f csv

How can I include specific counters from the input file with relog in Windows?

To include specific counters from the input file when using relog in Windows, you can use the following command:

Terminal window
relog input.etl -cf counters.txt

Is it possible to generate graphs from the output of relog in Windows?

Yes, you can generate graphs from the output of relog in Windows by specifying the graph option. For example:

Terminal window
relog input.etl -o output.html -cf counters.txt -g

Applications of the RELOG Command

  • Converting performance counter logs to other formats
  • Merging performance counter logs
  • Filtering counters when converting logs from binary to CSV
  • Summarizing performance data into database tables
  • Displaying the contents of performance logs