Defaults Override Mode

Log Parser

Defaults Override Mode

In "Defaults Override Mode" users can specify new default values to replace the factory default values of global switches, input format parameters, and output format parameters.
Values are overridden on the computer on which the "saveDefaults" command is executed, and the new values are in effect until they are overridden by a new override command, or until the factory defaults are restored with the "restoreDefaults" command. The new default values also affect the Log Parser scriptable COM components.

Note: For security reasons, properties that are used to specify confidential or sensitive information, such as usernames and passwords, can not be overriden by the "Defaults Override Mode" feature.

The general syntax of commands in defaults override mode is:

LogParser -saveDefaults [ -i:<input_format> <input_format_options> ] [ -o:<output_format> <output_format_options> ] [ <global_switches> ]
LogParser -restoreDefaults

-i:<input_format> <input_format_options>
Specifies the input format whose parameters' default values are to be overridden, and the new default values for the selected parameters.
The "-i:" switch is followed by the name of the selected input format, and the new default values are entered as switches with names matching the input format's parameter names, followed by a colon and by the value for the new default, as in the following example:
C:\>LogParser -saveDefaults -i:EVT -binaryFormat:ASC -resolveSIDs:ON
For more information on input format parameters, refer to the Input Format Reference.
-o:<output_format> <output_format_options>
Specifies the output format whose parameters' default values are to be overridden, and the new default values for the selected parameters.
The "-o:" switch is followed by the name of the selected output format, and the new default values are entered as switches with names matching the output format's parameter names, followed by a colon and by the value for the new default, as in the following example:
C:\>LogParser -saveDefaults -o:NAT -rtp:-1
For more information on output format parameters, refer to the Output Format Reference.
<global_switches>
Specify new default values for global switches.

The following example command overrides the default value of the "-stats;" global switch, together with the "rtp" parameter of the NAT output format:
C:\>LogParser -saveDefaults -o:NAT -rtp:-1 -stats:OFF 
For more information on global switches, refer to the Global Switches Reference.
-restoreDefaults
Restores the factory defaults of global switches, input format parameters, and output format parameters.
When specified, the "-restoreDefaults" switch must be the only argument of the command, as in the following example:
C:\>LogParser -restoreDefaults


See also:

Command-Line Operation Reference
Global Switches Reference


© 2004 Microsoft Corporation. All rights reserved.