GenHTTP Lambda Docs

The editor

Logs and analytics

How an app is doing - its log with requests, output and errors, its request statistics, and cookie-free visitor analytics counted on the server.

Three sections of the editor say how an app is doing, each answering another question: Logs what happened, Stats how much, Analytics who came. Agents read the same with read_logs and analytics.

Logs#

The Logs section is the app’s own log, live: every request with its status, size and time, what the code printed, and the errors it threw with their stack traces - which visitors never see. Filter by Requests, What it printed and Problems, or search.

The log of an app, with a request that failed and whyThe log of an app, with a request that failed and whyThe Logs section: requests as they come in - repeated ones counted - and an error with its cause.

  • The log holds the recent past and starts empty when the server restarts. The container’s output keeps everything, for the operator.
  • A draft’s preview has a log of its own, under the draft.
  • The overview shows the latest problems the log still holds, with a link here; the simple view offers to ask the agent to fix them.

Stats#

The Stats section counts every request the app answered, by minute and quarter hour, with their statuses and the paths asked for most. It needs no switch, includes programs as well as people, and starts again when the server restarts.

Analytics#

Analytics says who visits the app: visitors, page views and requests per day, and the pages, referring sites, countries, devices, browsers and operating systems behind them.

Visitors of an app over 30 daysVisitors of an app over 30 daysThe Analytics section: visitors, page views and requests, and visitors per day.

  • Off until switched on. Nothing is counted until the owner switches it on in this section - or asks an agent to. Switching it off deletes what was counted.
  • Counted on the server, in front of the app: no cookie, no script in its pages, no third party, nothing to announce in a cookie banner.
  • Visitors are people who opened a page, counted once a day by a fingerprint that changes daily and is kept in memory only. A restart counts somebody again who comes back the same day.
  • Crawlers are counted apart, by kind - search engines, AI crawlers, link previews, monitoring. A visit counts as Google’s, Bing’s, OpenAI’s, Apple’s or Perplexity’s only where it came from addresses they publish. Include bots adds their page views to the figures.
  • Kept for a year, of which the app’s tier shows the last 7 days (sandbox) or the whole year (production), by default.
  • Not counted: drafts’ previews and the demos.

Figures are written every few minutes, so the newest visits appear with a short delay. Countries come from the registries of IP addresses and need nothing from you; the operator can switch that lookup off.