FAQ: Filtering All but One Domain

Can Sawmill generate statistics on just one domain, from a log file containing log data from many domains?

Short Answer

Yes. Add a log filter that rejects hits from all other domains.

Long Answer

Yes. This can be done easily using a log filter. To do this, click Show Config in the profiles list, click Log Filters, and create a new log filter with this value:

Replace mydomain.com with the actual domain, and replace server_domain with the name of the log field which reports the server domain in your log data. Sometimes, this field is called cs_host. If there is no such field in your log data, then you'll need to use a different log format in order to filter by domain.

The next time you rebuild the database, all log entries from domains other than the one you entered will be rejected, leaving only statistics from the one domain.