4/18/2023 0 Comments Awstats for iisIn the preceding code, the LogFormat option is one of the most important options. LogFormat="date time cs-method cs-uri-stem cs-uri-queryĬs-username c-ip cs-version cs(User-Agent) cs(Referer) You can leave all options as defined in this template, remove all “include” commands, and overwrite the following entries: Create the file as a copy of the template provided with the AWStats installation. You’ll “include” this file with more specific configurations. The included file is the “base” file discussed above that you can use to manage all shared configuration options. You can refer to the AWStats documentation to check supported patterns. For example, for November 2005, IIS would use a file named ex0511.log. By default, IIS dynamically creates file names using an exYYMM.log pattern. SiteDomain="HostAliases="These files tell AWStats to look for IIS log files in a specific directory. A typical configuration file for a Web site might look like the following (note that I’ve removed all AWStats’ template notes, but you can find them included in the downloadable code). It’s best to edit AWStats configuration files using WordPad (not Notepad or another Windows text editor), because the provided templates are in a Unix file format, which uses a single line feed (LF) character for line endings rather than a carriage return/line feed (CR/LF) character pair as Windows does, so it’s not easy mange them with Notepad). If you cannot access this file because IIS is using it, restart IIS by entering iisreset.exe at a command prompt. Check your selections, because AWStats log analysis depends on having the correct format.įinally, if there’s an existing and active log file for your Web sites, delete (or rename) it, which will force IIS to create a new one and begin filling it using the new format. To do that, select the Advanced tab, and check only these options: date, time, client IP, user name, method, URI stem, URI query, protocol status, bytes sent, protocol version, user agent, and referrer. Select a log file folder (I suggest moving the logs to a different one than the default, so you can have a simple log storage path for all your Web sites). Check the “Use local time for file naming and rollover” option however note that doing so doesn’t change the way IIS records time values in the log but only how it manages files. Set up a log schedule (I suggest monthly, because that schedule makes it easy to manage through AWStats configuration).Next, click the Properties button to edit the logging options.Accept the default “W3C Extended Log File Format” option. Enable extended logging capabilities by checking the “Enable logging” option.You can launch the IIS MMC through Control Panel by double-clicking the Administrative Tools item, and then Internet Information Services You can control these options from the IIS MMC snap-in management application, editing the log properties for a specific Web site or for all Web sites simultaneously. To use IIS6 with AWStats, you need to make sure that IIS6 logging is turned on, that it’s saving data to log files, and you need to specify which data fields to collect and how to write them. IIS 6 can record data in either log files or database tables the precise fields it records are configurable. conf files in the bin folder you created earlier. Extracting the standard options into a separate general file and then including that in the site-specific files simplifies managing a hosting environment where you want to analyze data for many Web sites.ĪWStats comes with a template configuration called that you can use to create new files (you can find it in the wwwrootcgi-bin folder from the installation). The site-specific file contains information such as where the logs to analyze are, how to process them for this site, and so on. For example, when you instruct AWStats to apply a “CONFIGNAME” configuration, it will look for a file named in the bin folder.Ī configuration file can “include” options defined in another file, so it’s best to create a base/general configuration file that contains the standard options you want to apply to all reports, and then define a specific file for each Web site. You can later refer to specific configuration files using that variable name. You should name your configuration files using the naming pattern, where “CONFIGNAME” is variable and is the name of the configuration you want to create. You must create a configuration file for each Web site you want to analyze. conf extension that contains information about a Web site’s logs. A configuration file is a text file with a. You control AWStats by creating or (more often) altering configuration files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |