Skip to content
AnswerWell geo Documentation

Answerwell tools · 3 min read · Answerwell

Log File & Bot Traffic Analytics

Bot log analysis: identity verification, crawl coverage, revisit intervals, CDN visibility and statistical anomaly detection.

Bot analytics studies automated requests through infrastructure logs. It shows which resources were fetched, when, and with what result. These data cannot directly reveal an indexing decision, ranking signals or how a generative model later uses the document.

User-Agent is set by the client and does not prove origin. Google documents how to verify its official IP ranges and the matching DNS procedures [1]. For DNS verification a similar-looking hostname is not enough: check that the domain is allowed and that the name resolves back to the original IP. The method depends on the client category.

An origin log does not see requests served by the CDN. That is why the Answerwell system observes at the reverse proxy or edge and links those records to the application. An address taken from an arbitrary X-Forwarded-For header cannot be trusted: the chain of trusted proxies has to be defined.

Field Purpose
Event time and receipt time Ordering and delivery delay
Request ID Linking CDN and origin without double counting
Verified client class Separating confirmed bots from declared ones
URL, method, status Object and result of the request
Duration and bytes Resource cost
Cache and log source Boundaries of the observed path

OpenTelemetry defines a common model for logs, timestamps, attributes and trace links [2]. Normalization makes records comparable, but it does not add events that are missing.

For the target URLs UTU_T and the visited URLs UVU_V:

C=∣UV∩UT∣∣UT∣,E=Ntarget errorsNverified requests.C=\frac{|U_V\cap U_T|}{|U_T|},\qquad E=\frac{N_{target\ errors}}{N_{verified\ requests}}.

CC is coverage, EE is the share of predefined errors among verified clients. A 404 for a deleted page and a 503 for a working category mean different things. A 304 can be the correct result of a conditional request; HTTP defines the semantics [3].

The revisit interval of a URL uu:

Δtu,j=tu,j−tu,j−1.\Delta t_{u,j}=t_{u,j}-t_{u,j-1}.

The report shows the median and upper quantiles by template, plus pages that were never revisited. Leaving out unvisited URLs produces an overly favourable estimate. A short retention window does not allow the conclusion that long intervals are impossible.

A robust normalization of the series xtx_t helps detect deviations reliably:

zt=xt−median⁡(x)1.4826MAD⁡(x),z_t=\frac{x_t-\operatorname{median}(x)}{1.4826\operatorname{MAD}(x)},

where MAD is the median absolute deviation. A zero MAD needs a separate rule. The formula is a diagnostic heuristic; seasonality and changes in site size are modelled separately. Crossing a threshold is not proof that a client is malicious.

Answerwell calibrates its own robots on the visited templates, crawl frequency and response to updates. Data from doubtful user agents is kept apart so that a model of a real crawler is not trained on arbitrary traffic. The methodology defines how sources are recorded and how models are validated over time.

Check the identity sample, time zones and deduplication first. Then match edge and origin records and build series by template, status and URL parameter. A change in CDN policy is recorded as an intervention in the observation process itself.

For example, after a filter loop is fixed, compare the share of parameterized URLs, the number of useful unique documents and server errors. Fewer requests reaching the origin while edge traffic stays stable may be a cache effect rather than a crawler losing interest.

Decisions to limit requests take into account how confident the identification is and what the consequences are for availability. Cloudflare’s Bot Score is the output of a classification model, not proof of a specific operator’s identity; an ML score should be kept separate from verified IP ranges [4].

Incomplete logs, lost events, short retention and proxy changes all affect the conclusions. A missing record proves that no visit happened only if the chosen channel is proven complete. A bot visit is not a human visit and must not be counted in user conversion.

  1. Google. Verify requests from Google crawlers and fetchers. Verification guide.
  2. OpenTelemetry Authors. Logs Data Model. Specification.
  3. R. Fielding, M. Nottingham, J. Reschke. RFC 9110: HTTP Semantics, 2022. Standard.
  4. Cloudflare. Bot score. Model documentation.

See also: crawling and indexing, AI referral attribution.