Skip to content

Awstats

services.awstats.configs

Attribute set of domains to collect stats for. Type: attribute set of (submodule)

Default

{ }

Example

{"mysite" = {domain = "example.com";logFile = "/var/log/nginx/access.log";};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.domain

The domain name to collect stats for. Type: string

Default

"‹name›"

Example

"example.com"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.extraConfig

Extra configuration to be appended to awstats.${name}.conf. Type: attribute set of string

Default

{ }

Example

{"ValidHTTPCodes" = "404";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.hostAliases

List of aliases the site has.

Type: list of string

Default

[ ]

Example

["www.example.org"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.logFile

The log file to be scanned.

For mail, set this to

journalctl $OLD_CURSOR -u postfix.service | ${pkgs.perl}/bin/perl ${pkgs.awstats.out}/share/awstats/tools/maillogconvert.pl standard |

Type: string

Example

"/var/log/nginx/access.log"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.logFormat

The log format being used.

For mail, set this to

%time2 %email %email_r %host %host_r %method %url %code %bytesd

Type: string

Default

"1"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.type

The type of log being collected.

Type: one of "mail", "web"

Default

"web"

Example

"mail"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.webService.enable

Whether to enable awstats web service. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.webService.hostname

The hostname the web service appears under. Type: string

Default

"‹name›"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.configs.<name>.webService.urlPrefix

The URL prefix under which the awstats pages appear. Type: string

Default

"/awstats"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.dataDir

The directory where awstats data will be stored. Type: path

Default

"/var/lib/awstats"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.enable

Whether to enable awstats, a real-time logfile analyzer. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix

services.awstats.updateAt

Specification of the time at which awstats will get updated. (in the format described by {manpage}systemd.time(7))

Type: null or string

Default

null

Example

"hourly"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/logging/awstats.nix