{"id":19390853,"url":"https://github.com/tecnickcom/logpipe","last_synced_at":"2026-05-29T16:31:28.689Z","repository":{"id":27719270,"uuid":"31206524","full_name":"tecnickcom/LogPipe","owner":"tecnickcom","description":"PHP module to extend the default PHP error handling function.","archived":false,"fork":false,"pushed_at":"2025-05-13T14:48:28.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T15:54:24.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":false,"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/tecnickcom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.TXT","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20logpipe%20project"]}},"created_at":"2015-02-23T12:07:23.000Z","updated_at":"2025-05-13T14:48:32.000Z","dependencies_parsed_at":"2022-08-21T13:31:20.772Z","dependency_job_id":null,"html_url":"https://github.com/tecnickcom/LogPipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tecnickcom/LogPipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2FLogPipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2FLogPipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2FLogPipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2FLogPipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecnickcom","download_url":"https://codeload.github.com/tecnickcom/LogPipe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecnickcom%2FLogPipe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33662205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-10T10:23:35.856Z","updated_at":"2026-05-29T16:31:28.661Z","avatar_url":"https://github.com/tecnickcom.png","language":"C","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026currency_code=GBP\u0026business=paypal@tecnick.com\u0026item_name=donation%20for%20logpipe%20project"],"categories":[],"sub_categories":[],"readme":"LogPipe for PHP - README\n========================\n\n+ Name: LogPipe for PHP\n\n+ Version: 1.2.0\n\n+ Release date: 2012-08-30\n\n+ Author: Nicola Asuni\n\nDESCRIPTION:\n------------\n\nLogPipe is a PHP module to extend the default PHP error handling function.\nThis module allows to send logs to SysLog or pipe the logs to an external program.\n\nIt extends a standard log line to contain:\n+ the IP address of the server under which the current script is executing ($_SERVER['SERVER_ADDR'] variable);\n+ the host name of the server under which the current script is executing ($_SERVER['HTTP_HOST'] variable);\n+ the client IP address ($_SERVER['REMOTE_ADDR'] variable).\n\nThe IP address and host name on the log line can be used by an external program to split or aggregate PHP logs based on the Virtual host.\n\nThis module has been designed mainly as a complement for the TCPWebLog project (http://catn.com/cloud-computing/tcpweblog-collecting-and-aggregating-web-logs-on-the-cloud/).\n\nCOMPILE AND INSTALL:\n====================\n\nBefore you start, make sure you have php-devel package installed in your system. \n\n1. get the source code:\n\n        cd ~\n        git clone git://github.com/fubralimited/LogPipe.git\n\n2. compile the module:\n\n        cd ~/LogPipe \n        phpize \n        ./configure --enable-logpipe \n        make \n\n3. copy the module on the PHP module directory:\n\n        cp ./modules/logpipe.so /usr/lib64/php/modules/ \n\n4. copy and edit the configuration INI file:\n\n        cp logpipe.ini /etc/php.d/ \n        vi /etc/php.d/logpipe.ini \n\n Configuration examples:\n\n disable the module:\n\n        ; MODULE DISABLED\n        extension=/usr/lib64/php/modules/logpipe.so \n        logpipe.mode=0 \n        logpipe.command=\"\" \n\n send logs to syslog:\n\n        ; SYSLOG\n        extension=/usr/lib64/php/modules/logpipe.so \n        logpipe.mode=1 \n        logpipe.command=\"local4\" \n\n send logs to TCPWebLog:\n\n        ; TCPWEBLOG (check the LogPipe documentation for the correct parameters)\n        extension=/usr/lib64/php/modules/logpipe.so \n        logpipe.mode=2 \n        logpipe.command=\"/usr/bin/tcpweblog_client.bin 10.0.2.15 9940 /var/log/tcpweblog_cache.log php.log 1 - -\"  \n\n5. Restart syslog-ng (only if you are using the syslog mode): \n\n        service syslog-ng restart \n\n6. Restart Apache:\n\n        apachectl restart \n\n\nHOW-TO CREATE LogPipe RPMs\n------------------------------\n\nThis is a short hands-on tutorial on creating RPM files for the LogPipe project.\nFor an automatic building script for CentOS and the latest RPM packages please check the CatN Repository: https://github.com/fubralimited/CatN-Repo\n\n\n## DEVELOPMENT ENVIRONMENT ##\n\nTo build RPMs we need a set of development tools.\nThis is a one-time-only setup, installed by running those commands from a system administration (root) account.\nNOTE: You may need to change the the \n\t\nInstall the EPEL repository:\n\n\t# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/$(uname -m)/epel-release-6-7.noarch.rpm\n\nInstall development tools and Fedora packager:\n\n\t# yum install @development-tools\n\t# yum install fedora-packager\n\nThe following packages are required to create LogPipe RPMs:\n\n\t# yum install php-devel elfutils-devel\n\nCreate a dummy user specifically for creating RPM packages:\n\n\t# /usr/sbin/useradd makerpm\n\t# passwd makerpm\n\nReboot the machine, log as makerpm user and create the required directory structure in your home directory by executing: \n\n\t$ rpmdev-setuptree\n\nThe rpmdev-setuptree program will create the ~/rpmbuild directory and a set of subdirectories (e.g. SPECS and BUILD), which you will use for creating your packages. The ~/.rpmmacros file is also created, which can be used for setting various options. \n\n\n## CREATE THE LogPipe RPMs ##\n\nDownload the LogPipe sources:\n\n  $ cd ~\n\t$ git clone git://github.com/fubralimited/LogPipe.git\n\nCopy the SPEC files and source files to rpmbuild dir:\n\t\n\t$ cd ~/LogPipe\n\t$ export SUVER=$(cat VERSION) \n\t$ cp logpipe.spec ~/rpmbuild/SPECS/\n\t$ tar -zcvf ~/rpmbuild/SOURCES/logpipe-$SUVER.tar.gz  *\n\nCreate the RPMs:\n\n\t$ cd ~/rpmbuild/SPECS/\n\t$ rpmbuild -ba logpipe.spec\n\n\nThe RPMs are now located at ~/rpmbuild/RPMS/$(uname -m)\n\n\nINSTALL LOGPIPE RPM:\n---------------------------\n\nAs root install the LogPipe RPM file:\n\n\t# rpm -i logpipe-1.2.0-1.el6.$(uname -m).rpm \n\t\nConfigure the LogPipe\n\n\t# nano /etc/php.d/logpipe.ini\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnickcom%2Flogpipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecnickcom%2Flogpipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecnickcom%2Flogpipe/lists"}