{"id":24585783,"url":"https://github.com/nugget/apache-pgsql-log","last_synced_at":"2026-01-03T08:32:13.060Z","repository":{"id":66795952,"uuid":"1378716","full_name":"nugget/apache-pgsql-log","owner":"nugget","description":"Helper tools for piped logging from Apache HTTP Server to a PostgreSQL database","archived":false,"fork":false,"pushed_at":"2011-05-20T16:57:15.000Z","size":104,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T05:14:40.836Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nugget.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-02-17T15:46:13.000Z","updated_at":"2020-06-17T03:45:29.000Z","dependencies_parsed_at":"2023-02-20T11:35:20.454Z","dependency_job_id":null,"html_url":"https://github.com/nugget/apache-pgsql-log","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nugget%2Fapache-pgsql-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nugget%2Fapache-pgsql-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nugget%2Fapache-pgsql-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nugget%2Fapache-pgsql-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nugget","download_url":"https://codeload.github.com/nugget/apache-pgsql-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244085017,"owners_count":20395523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-24T05:14:43.899Z","updated_at":"2026-01-03T08:32:13.022Z","avatar_url":"https://github.com/nugget.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"Apache Pgsql Log\n================\n\nThis is a facility and related toolbox which is used as a piped log so that your Apache HTTP Server\ncan log its activity into a PostgreSQL database alongside traditional file logging, or as a total\nreplacement.\n\nLogging to a database has several significant advantages over file-based logging, such as:\n\n* No ambiguity when later processing the logs, no need to parse the data\n* Truly typed data (e.g. \"inet\" field types for logged IP addresses)\n* Simpler to collate logs from multiple servers into a single log repository\n\n\nRequirements\n------------\n\n* [PosgreSQL](http://www.postgresql.org/)\n* Tcl 8.5 or newer\n* Tclx\n* [tcllauncher](https://github.com/flightaware/tcllauncher)\n* [Tcl Syslog](http://sourceforge.net/projects/tcl-syslog/)\n\nInstallation\n------------\n\n1. Create a PostgreSQL database somewhere.\n2. Run the `./db/schema.sql` file in the database to create the tables and roles.\n3. Copy the included config.tcl.sample to config.tcl and edit to suit your environment.\n4. Install the app `sudo make install`\n\nConfiguration\n-------------\n\nIf you want every vhost to be logged to the same database, you only need a single instance of\napache-pg-sql for the server.  If you want to log each vhost differently, you'll need to add a\nCustomLog entry for those vhosts independently.\n\nFor a single log, comment out every CustomLog configuration entry in your Apache config.  This\nincludes the base httpd.conf and any vhost include files that may exist.\n\nPlace the contents of the `sample.conf` file into your main Apache configuration file.\n\nRestart Apache\n\nNow What?\n---------\n\nApache Pgsql Log also provides a workalike to `tail -f` which allows you to watch the logs in real\ntime on stdout of a terminal window.  Simply run:\n\n`apache_pg_log tail`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnugget%2Fapache-pgsql-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnugget%2Fapache-pgsql-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnugget%2Fapache-pgsql-log/lists"}