Command Line Mode[Requires Professional Edition] You can run WebLog Expert using the command line mode. In this case the program will analyze the specified profiles and exit. WebLog Expert supports two command line modes: standard and batch ones. Note 1: if a command line parameter contains spaces use quotes to delimit it. For example: WLExpert "Main Report" -l"c:\My Logs\*.log" Note 2: in most cases you should use full path to the main executable file instead of "WLExpert". E.g. if WebLog Expert is installed to the "C:\Program Files\WebLog Expert\" directory the command line will look as follows: "C:\Program Files\WebLog Expert\WLExpert.exe" Sample Standard Mode
Command line syntax: WLExpert <Profile> -n<Name> -d<Domain> -i<IndexFile> -l<LogFile> -r<OutputPath> -e<EmailAddress> -t<TimeRange> -s <Profile> is the name of an existing profile. You can also use wildcards to analyze multiple profiles. E.g. use "WLExpert *" command line (without quotes) to analyze all the existing profiles. All the switches are optional. -n, -d, -i, -l, -r, -e and -t switches allow you to define custom profile properties that should be used instead of the properties of the specified profile(s). -n<Name> - name that should be shown in the report instead of the profile name -d<Domain> - domain name -i<IndexFile> - index file name -l<LogFile> - path for local log file to analyze. You can also use wildcards and macros, and separate multiple file names or masks with semicolons. If you use this switch the program will use "Local file" mode for log location. -r<OutputPath> - report output folder (for HTML reports) or output file name (for PDF and CSV reports). You can use macros in the output path. If you use this switch the program will use "Local drive" mode for report destination. -e<EmailAddress> - destination e-mail address. Multiple e-mail addresses can be separated with semicolons. If you use this switch the program will use "E-mail" mode for report destination. Note: -r and -e switches cannot be used at the same time. -t<TimeRange> - time range to be analyzed. You can define specific time range or use one of the predefined values. Time ranges must be entered in format "date1:time1 - date2:time2" or "date1 - date2". In the second case whole days will be analyzed. The format of date is mm/dd/yyyy and the format of time is HH:MM:SS. These formats don't depend on date and time format settings of Windows and WebLog Expert. Examples: "05/14/2003 - 06/04/2003", "06/15/2003:07:30:00 - 06/16/2003:12:00:00". You can also use one of the predefined values that are shown on the Time Range page of the Profile Properties dialog: "All activity", "Today", "Yesterday", "Last <n> hours", "Last <n> full days", "This week", "Last week", "Last <n> full weeks", "This month", "Last month", "Last <n> full months", "This quarter", "Last quarter", "Last <n> full quarters", "This year", "Last year" or "Last <n> full years". You need to specify a number instead of <n>. Examples: "Yesterday", "Last 7 full days", "Last 12 full months". -s switch turns on the silent mode. In this mode the program doesn't show message boxes if errors occur. Examples: WLExpert Sample WLExpert Sample -n"Custom Profile" -dwww.domain.com -iindex.htm -t"Last week" WLExpert Sample -l"c:\Program Files\WebLog Expert\sample.log" -r"c:\Program Files\WebLog Expert\Report" WLExpert "Main Report" -lc:\Logs\*.log -s Batch Mode Use this mode instead of running WebLog Expert in standard mode several times with different command line parameters. Command line syntax: WLExpert @<ListFile> -s <ListFile> is a text file that can be created with any text editor, which doesn't add special characters (e.g. Notepad). The file must contain lines of the following format: <Profile> -n<Name> -d<Domain> -i<IndexFile> -l<LogFile> -r<OutputPath> -e<EmailAddress> -t<TimeRange> WebLog Expert processes all lines of <ListFile> sequentially. Each line is processed the same way as program run in the standard mode with the same parameters. All the switches are optional. -s switch in the batch mode command line also works the same way as in the standard mode. This switch is optional too. Example 1: WLExpert @c:\Logs\Simple.txt where Simple.txt file contains the following lines: Sample "Profile 1" -n"My Logs" "Profile 2" -n"Special Logs"
Example 2: WLExpert @"c:\My Logs\WLEList.txt" -s where WLEList.txt file contains the following lines: Main -n"Domain 1" -dwww.domain1.com -l"c:\My Logs\Log1.log" -r"c:\Reports\Report1" "Main with Filters" -n"Filtered Domain 1" -dwww.domain1.com -l"c:\My Logs\Log1.log" -r"c:\Reports\FilteredReport1" Main -n"Domain 2" -dwww.domain2.com -l"c:\My Logs\Log2.log" -r"c:\Reports\Report2" "Main with Filters" -n"Filtered Domain 2" -dwww.domain2.com -l"c:\My Logs\Log2.log" -r"c:\Reports\FilteredReport2" |