webstat: Web Statistics
The webstat
utility is used to manage Webalizer preferences through CLI. By using this utility, you can perform the following tasks:
- adding direct request or referrer records to or removing them from Webalizer preferences on a domain
- displaying the list of existing direct request or referrer records in Webalizer preferences on a domain
Usage
Example
The following command adds hidden referrer record *example.net/ to Webalizer preferences on the domain example.com:
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Adds a record to Webalizer preferences on a domain. |
To add hidden referrer record *example.net/ to Webalizer preferences on the domain example.com: plesk bin webstat --add example.com -type hidden -url *example.net/ or plesk bin webstat --add example.com -type hidden -url *example.net/ |
|
|
Deletes a record from Webalizer preferences on a domain. |
To remove hidden referrer record *example.net/ from Webalizer preferences on domain example.com: plesk bin webstat --remove example.com -type hidden -url *example.net/ or plesk bin webstat -r example.com -type hidden -url *example.net/ |
|
|
Displays the list of records in Webalizer preferences on a domain. |
To view the list of existing Webalizer records on the domain example.com: plesk bin webstat --list example.com or plesk bin webstat -l example.com |
|
|
Deletes all records from Webalizer preferences on a domain. |
plesk bin webstat --del-all example.com or plesk bin webstat -da example.com |
|
|
Displays help on the use of this utility. |
To view the help info on the use of the webstat utility: plesk bin webstat --help or plesk bin webstat -h |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Specifies a type of a record in Webalizer preferences. Is to be used in conjunction with the
|
To add hidden referrer record *example.net/ to Webalizer preferences on the domain example.com: plesk bin webstat --add example.com -type hidden -url *example.net/ |
|
|
Specifies an URL or an URL pattern for a Webalizer record. |
|
|
|
Specifies name of a grouped referrer record in Webalizer preferences. |
To add grouped referrer record *example.net/ named example.net to Webalizer preferences on the domain example.com: plesk bin webstat --add example.com -type group -group example.net -url *example.net/ |