# Ledgesec

> Ledgesec reads the nginx or Coolify access log into a journal. A probe path lists the country and User-Agent. The collector does not change the request.

Ledgesec reads the access log and keeps the line. The request still reaches the application. This is not a firewall: it does not challenge a visitor and it does not deny one.
Self-hosted is what you can run today. Premium is the custom piece we build for your hosts after you write. There is no tariff table.
Not built. The journal keeps the access log. These pages are the pains it does not solve yet. Each one has ten ways we could meet it. A note at the bottom tells us which pain you want. Nothing here refuses a request.

## Product

- [What the journal keeps](https://ledgesec.com/product): Ledgesec is a reading instrument for the access log. A host is the whole web server. A site is the Host header the proxy passed to the application. A name that only hit a catch-all stays in the journal and does not become a site.
- [Self-hosted or Premium](https://ledgesec.com/pricing): Self-hosted is MIT. We build the piece your hosts need. The future pages are the work we can take on. None of it is in the product until that work is done.
- [How a server joins the journal](https://ledgesec.com/docs): The visitor still reaches the application. A collector on that server reads the access log and posts a batch. Europe keeps the journal. New York does not.

## Who it helps

- You run the web server. Nginx, OpenResty, or a Coolify proxy. The host is the whole server. A path the server does not have still lands in the journal, so a scan is visible.
- You own a site. You see that site's requests: the path, the status, the country, and the User-Agent. Visitor addresses stay off your pages.
- You look after every host. An admin sees addresses across the edges, adds a host for someone else, and adds a probe template. A site user cannot open that view.

## When it helps

- A scanner asks for a file. A request for /.env, /.git, or wp-login is marked when the journal is read. The application has already answered. The collector did not change the request.
- You want the line later. A row stays for three years. Removing a host does not erase rows already written. A disabled site is not written further.
- The server should keep answering. Use it when the request must still reach the application. Challenge and deny stay off. Apache and DNS are listed and cannot be added yet.

## What we might build next

- [What we might build next](https://ledgesec.com/future): The journal keeps the access log. These pages are the pains it does not solve yet. Each one has ten ways we could meet it. A note at the bottom tells us which pain you want. Nothing here refuses a request.
- [A probe is written and nobody is told](https://ledgesec.com/future/notice): The line sits in the journal until someone opens the cabinet. A scan of /.env can finish before anyone looks.
- [The request still reaches the application](https://ledgesec.com/future/stop): Today the collector only reads the log. The request is not changed, not challenged, and not refused. Some operators want a later choice.
- [Apache and DNS cannot be added](https://ledgesec.com/future/collectors): The cabinet lists Apache and DNS, and both stay unavailable. Caddy and Angie on the customer machine are not packages yet.
- [The query string is missing](https://ledgesec.com/future/query): A scan can hide in the query. The journal leaves the query, the body, the cookie, and the Referer out.
- [A catch-all name never becomes a site](https://ledgesec.com/future/names): A Host name that only hit the catch-all stays in the journal and does not become a site. Finding it means reading rows.
- [The collector stops and the journal just sits](https://ledgesec.com/future/silence): If the daemon stops, the disk fills, or the log path rotates, the journal stops growing and nobody is told.
- [A week of rows and no picture](https://ledgesec.com/future/brief): Requests, probes, and sites are separate pages. There is no single picture of one host for a day or a week.
- [You cannot hand someone a slice](https://ledgesec.com/future/share): The rows live in the cabinet. There is no file and no link you can hand to someone who should see one path.
- [The same address comes back](https://ledgesec.com/future/return): An admin can open an address and its requests. Challenge and refuse on that menu are visible and off. Nothing says the address returned today.
- [Several servers and no comparison](https://ledgesec.com/future/compare): Each host has its own journal. Nothing puts yesterday's probe counts side by side.

## Notes

- [About the journal](https://ledgesec.com/about): Ledgesec is the journal for an access log you already have. The request still reaches the application. The collector does not change the request, and it does not challenge a visitor or deny one.
- [Notes on the journal](https://ledgesec.com/blog): How the collector reads the access log, and how a probe path keeps the country and User-Agent.
- [The collector leaves the request alone.](https://ledgesec.com/blog/observe-first): Nginx, the Linux daemon, and Coolify all post a line after the application has answered.
- [A request for /.env is a marker.](https://ledgesec.com/blog/probe-paths): Scanners ask for files a site should never serve. The cabinet marks those paths when it reads the journal.
- [Get a demo](https://ledgesec.com/demo): Tell us the web server and how it reports. We open a host in the cabinet and send the env file for that host. The request still reaches the application.
- [Source](https://github.com/ledgesec/ledgesec): The project is MIT.
- [Full text](https://ledgesec.com/llms-full.txt): The same pages, written out.

# Written out

## What the journal keeps

Ledgesec is a reading instrument for the access log. A host is the whole web server. A site is the Host header the proxy passed to the application. A name that only hit a catch-all stays in the journal and does not become a site.

### A line

When the collector sent them, a line carries the time, method, path, status, response size, protocol, TLS, and User-Agent. A country code is added from a local database when the batch arrives. The query string, the body, the cookie, and the Referer stay out.
### A probe

Paths such as /.env, /.htaccess, /.git, wp-login, dumps, and database panels are marked when the journal is read. An admin adds a template under Probes. /.env inside a directory is a probe too. Open a probe path and the journal lists those requests: the time, the country, and the User-Agent.
### Who sees what

An admin and a user share one session. An admin sees addresses for every edge. A user sees the requests of their hosts, without addresses. A user cannot open an admin method. The public site never draws a visitor address.
### How long a line stays

A line stays for three years, then ClickHouse drops it. Deleting a host does not erase rows already written. A disabled site is not written further. The master after install waits for the site name and closes when that name arrives.
### How a server reports

OpenResty writes the line with log_by_lua after the response. Plain nginx uses the Linux daemon, which tails the access log and leaves nginx itself alone. Coolify tails the proxy log, including a name the proxy did not route to an application. DNS and Apache are listed in the cabinet and cannot be added yet. The collector does not change the request.

## Self-hosted

You run the journal. The collector reads the log and does not change the request.

## Premium

We build the piece your hosts need. The future pages are the work we can take on. None of it is in the product until that work is done.

## A probe is written and nobody is told

The line sits in the journal until someone opens the cabinet. A scan of /.env can finish before anyone looks.

### A new path

When a probe path shows up for the first time today, the cabinet marks it.
### The last hour

The host page shows how many probe requests arrived in the last hour.
### A note to the owner

Mail or Telegram tells the host owner the path, the country, and the User-Agent.
### No address for a site user

That note leaves the visitor address out, the same way the site cabinet does.
### Quiet hours

At night the note waits, and the morning brings one list.
### Repeat first

One stray line stays quiet. The note starts after the same path repeats.
### Per host

The admin can turn the note off for one host and leave the others on.
### A new template

A probe template the admin just added is included the next time the journal is read.
### A link to the path

The note opens the requests for that path, not a second copy of the log.
### A late batch

If the collector was behind, the note says the batch arrived late.
## The request still reaches the application

Today the collector only reads the log. The request is not changed, not challenged, and not refused. Some operators want a later choice.

### Off by default

A host has no challenge and no refuse until someone turns that choice on.
### Challenge

A later mode can show a challenge page, and the journal still keeps the line.
### Refuse one path

Refuse only a path the admin marked, not every probe.
### Dry run

The journal says what would have been refused, and the request still passes.
### Admin only

A site user cannot turn this on.
### OpenResty only

Only the module that already sits in the request can stand in front. The daemon only reads the log.
### Coolify stays a reader

The proxy log is after the fact, so that collector cannot refuse anything.
### The line remains

A refused request is still a journal line, with the reason written on it.
### Separate from install

Installing the collector does not turn the choice on.
### This page does not turn it on

Asking about it here does not change a live host.
## Apache and DNS cannot be added

The cabinet lists Apache and DNS, and both stay unavailable. Caddy and Angie on the customer machine are not packages yet.

### Apache log

Apache would tail its access log the way the Linux daemon tails nginx.
### A format line

The cabinet would show the Apache log format next to the nginx one.
### The same batch

The batch posted to the journal would be the same shape.
### The same env file

The host id and the ingest secret stay the ones from the cabinet.
### DNS is another journal

A DNS collector would read a query log, not an HTTP path.
### Still listed

Until the collector exists, the cabinet keeps the choice visible and unavailable.
### Caddy on the customer machine

A package when a customer runs Caddy, separate from our own edge.
### Angie

A package when a customer asks for Angie.
### No pretend

A collector that cannot read the log does not invent lines.
### The request stays put

These collectors would still not change the request.
## The query string is missing

A scan can hide in the query. The journal leaves the query, the body, the cookie, and the Referer out.

### Keys only

Keep the query key names and drop the values, so a secret in the value stays out.
### Opt in

A host can choose to keep the query. The default stays as it is now.
### Body stays out

No later mode keeps the body.
### Cookie stays out

No later mode keeps the cookie.
### Referer stays out

The Referer stays out unless a separate opt-in says otherwise.
### A probe in a key

A probe template can match a query key, not only a path.
### On the row

When keys were kept, the request row shows them.
### A day of shapes

For one day the cabinet can show the shape it would have kept, without storing it.
### Admin chooses

The admin sets the choice. The site user sees the result without addresses.
### The public site stays clear

This site still does not draw a visitor address.
## A catch-all name never becomes a site

A Host name that only hit the catch-all stays in the journal and does not become a site. Finding it means reading rows.

### The leftover names

A list of Host names that never became a site.
### Make it a site

One action turns a leftover name into a site.
### Call it noise

A rule keeps a name from becoming a site.
### Group names

Several names on one host sit together in the cabinet.
### A disabled site

It stays in the list and is not written further.
### Port or no port

The admin can treat a name with a port as the same site.
### The master

After install, the master still closes when the first real name arrives.
### Search

Search across the names on that host.
### Probes per name

The day shows how many probe requests each name had.
### Which edge

The admin sees the edge that observed the name.
## The collector stops and the journal just sits

If the daemon stops, the disk fills, or the log path rotates, the journal stops growing and nobody is told.

### Last batch

The host shows the time of the last batch.
### A quiet window

The host is quiet when no batch arrived for a chosen number of minutes.
### A note

The owner hears when the quiet stretch starts.
### It returns

The note stops when a batch arrives again.
### Not deleted

A quiet host stays in the cabinet.
### Why it might be quiet

A stopped daemon, a full disk, or a log that moved.
### Agent version

The cabinet shows the build the host last sent.
### Different windows

Nginx and Coolify can use different quiet windows.
### Every quiet host

The admin sees all of them. A site user sees their own.
### Old rows stay

Silence does not shorten the three years a line is kept.
## A week of rows and no picture

Requests, probes, and sites are separate pages. There is no single picture of one host for a day or a week.

### One day

A page for one host: requests, probes, and country codes for a day.
### Seven days

The same picture for seven days.
### Slow paths

The brief lists the slow paths, and each one opens its requests.
### Top probe paths

The paths that matched a probe template, counted at read time.
### Countries

Country codes from the journal, without a map of attacks.
### A sentence

A short note the owner can read without opening every table.
### No score

The brief does not turn refused requests into a score. Refuse is not on.
### Counted when read

The numbers come from the journal at read time, not from a second store.
### Without addresses

A site user gets the brief without visitor addresses.
### The edge

The admin can include the edge. A site user does not need it.
## You cannot hand someone a slice

The rows live in the cabinet. There is no file and no link you can hand to someone who should see one path.

### One path

A link to one path, for people who can already open that host.
### It expires

The link stops working after a chosen time.
### Still no address

A site user who opens the link does not see visitor addresses.
### A file of the screen

Export the rows on the current page.
### The same columns

The file has the columns the cabinet already shows.
### No body, no cookie

The file cannot contain what the journal never stored.
### Addresses for the admin

Only the admin export can include addresses.
### One row

Copy one row without opening a file.
### A read, not a copy

The export reads the journal. It does not make a second store.
### Signed out

The link does not work after the session ends.
## The same address comes back

An admin can open an address and its requests. Challenge and refuse on that menu are visible and off. Nothing says the address returned today.

### Returned today

The address page marks an address that already appeared today.
### Actions stay off

Challenge and refuse on that menu stay off until a host turns them on.
### Many probe paths

A note when one address asks for many probe paths.
### Country change

The admin can see the country code change for that address.
### Hidden from the site user

A site user never sees the address.
### Hidden from this site

The public site still does not draw a visitor address.
### A watch

The admin can watch one address.
### Three years

The watch lasts as long as the row, and deleting a host does not erase the row.
### A read

The watch is a reading of the journal, not a second list.
### Not a score

Returning is a fact on the row. It is not a threat count.
## Several servers and no comparison

Each host has its own journal. Nothing puts yesterday's probe counts side by side.

### One table

The admin's hosts in one table, with probe counts for the day.
### Sort

Sort by that count.
### The last hour

The same table for the last hour.
### Own hosts only

A site user sees their hosts and not anyone else's.
### The edge

The admin gets the edge as a column.
### Quiet is visible

A host with no batch is shown as quiet, not as a hidden zero.
### Open the host

A row opens that host.
### Counted when read

The numbers are computed when the page is read.
### No second database

The comparison does not keep its own copy of the journal.
### Name them in the note

The demo note can name the hosts you want to see side by side.

## The collector leaves the request alone.



Nginx, the Linux daemon, and Coolify all post a line after the application has answered.



A host is one web server. Every request on it can land in the journal, including a path the server does not serve. That is how a scan shows up.

Nginx reports through an OpenResty module that runs after the response. The Linux daemon follows the nginx access log and does not rebuild nginx. Coolify follows the proxy log, including a name that never reached an application. None of them stand in front of the visitor.

A line may include the time, method, path, status, response size, protocol, TLS, and User-Agent. The query string, the body, the cookie, and the Referer stay on the server. Country is filled from a local database when the batch arrives.

Europe stores the rows. A row lasts three years, then it is dropped. Turning a host off stops new lines. It does not delete the old ones.
## A request for /.env is a marker.



Scanners ask for files a site should never serve. The cabinet marks those paths when it reads the journal.



Scanners ask for files a public site should not serve. /.env and /.htaccess are the common ones. The same pass looks for a git checkout, a WordPress login, or a dumped .sql file. A secret file inside a directory is marked too.

The mark is applied when the cabinet reads the journal. An admin can add a pattern. The application has already answered the request.

Open the path and the history lists the country and the User-Agent for each request. An admin also sees the address. A user of one site does not.
