| # Churn client configuration. | |
| # | |
| # Copy this file to /opt/churn/churn.yaml and change what you need. Every setting is | |
| # optional: a line you leave out (or leave commented) gets the value shown here. For | |
| # most machines the whole file can stay as it is. | |
| # | |
| # A misspelled setting is not silently accepted. The client logs a warning that names | |
| # it at start-up, so have a look at `journalctl -u churn` after editing. | |
| server: | |
| # Where the Churn server lives. The client only ever talks to this address. | |
| url: https://churn.apache.org | |
| # Seconds before a request to the server is given up on (and retried later). | |
| timeout: 15 | |
| # true: check the server's certificate against the system's CA store. | |
| # A path: check it against that CA bundle instead. | |
| # false: no check at all. Only for a lab setup, never for a real one. | |
| verify_tls: true | |
| # The name this machine gets in the dashboard. Leave empty to use its full host name. | |
| # An admin can also rename a client on the server, which wins over this. | |
| name: "" | |
| # The client's private key, its read positions and the spool of unsent packets. | |
| data_dir: /opt/churn/data | |
| logs: | |
| # Every directory is scanned for files that match `pattern`. A directory that does | |
| # not exist on this machine is skipped, so one list can serve all your hosts. | |
| directories: | |
| - /var/log/apache2 | |
| - /x1/logs | |
| pattern: "*.log" | |
| # Also look in subdirectories. | |
| recursive: false | |
| # Seconds between looking for log files that have appeared since the last look. | |
| rescan_interval: 30 | |
| # Seconds between reading new lines from the files already open. | |
| poll_interval: 1.0 | |
| # When a file is rotated, keep reading the old one for this long. Apache workers | |
| # that were busy during the rotation still write their last lines there. | |
| rotation_drain_seconds: 120 | |
| # Lines longer than this are skipped as garbage. | |
| max_line_bytes: 65536 | |
| # Requests whose URI contains one of these strings are left out entirely, for | |
| # example a health check that a load balancer fetches every second. | |
| ignore_uris: [] | |
| # - /server-status | |
| # - /healthz | |
| # Seconds between packets. The server's finest history has one point per packet, so | |
| # this is also the resolution of the "last 15 minutes" and "last hour" charts. | |
| interval: 5 | |
| # After an admin approves this client, send what today's log files already held | |
| # before the client started. Set to false to start from "now" instead. | |
| backfill: true | |
| limits: | |
| # A packet lists requests per (site, address, user agent). On a very busy machine | |
| # that list is cut off here; the totals stay exact and the dashboard says so. | |
| max_origins_per_packet: 5000 | |
| max_uris_per_packet: 40 | |
| max_hosts_per_packet: 30 | |
| # Most that is read from one file in one go, so a huge log cannot starve the rest. | |
| max_read_mb_per_poll: 32 | |
| # Packets that could not be delivered wait on disk and are sent, oldest first, when | |
| # the server is back. Older or bulkier than this, and the oldest are thrown away. | |
| spool: | |
| max_age_hours: 24 | |
| max_mb: 200 | |
| system: | |
| # Network interfaces whose names start like this are not counted as traffic. | |
| nic_exclude_prefixes: [lo, veth, docker, br-, virbr] | |
| # Processes with these names are added up as "Apache" in the dashboard. | |
| apache_process_names: [apache2, httpd] | |
| # While waiting for approval (or after being denied) the client asks again this often. | |
| register_retry_seconds: 30 | |
| # DEBUG, INFO, WARNING or ERROR. | |
| log_level: INFO |