{"id":19064967,"url":"https://github.com/netkiller/logging","last_synced_at":"2025-04-28T11:25:20.020Z","repository":{"id":69703476,"uuid":"27859087","full_name":"netkiller/logging","owner":"netkiller","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-29T14:30:24.000Z","size":56,"stargazers_count":9,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T11:25:11.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netkiller.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-12-11T07:20:59.000Z","updated_at":"2023-02-20T18:52:43.000Z","dependencies_parsed_at":"2023-07-11T05:34:47.416Z","dependency_job_id":null,"html_url":"https://github.com/netkiller/logging","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/netkiller%2Flogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Flogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Flogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Flogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netkiller","download_url":"https://codeload.github.com/netkiller/logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251303647,"owners_count":21567729,"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":"2024-11-09T00:48:04.093Z","updated_at":"2025-04-28T11:25:20.010Z","avatar_url":"https://github.com/netkiller.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"logging\n=======\n\nInstall\n-------\n\n\t[root@localhost ~]# pip3 install netkiller-logging\n\t\n\t[root@localhost ~]# whereis rlog \n\trlog: /usr/local/bin/rlog\n\n\t[root@localhost ~]# rlog \n\tUsage: rlog [options] filename\n\n\tOptions:\n\t-h, --help            show this help message and exit\n\t-H localhost, --host=localhost\n\t\t\t\t\t\t\tpush log to remote host\n\t-p 1214, --port=1214  port\n\t--sleep=0.05          with -s, sleep  for  approximately S  seconds between\n\t\t\t\t\t\t\titerations\n\t-d, --daemon          run as daemon\n\t-f, --full            Full text\n\t--stdin               cat file | prog ...\n\t-e /tmp/rlog.log, --errlog=/tmp/rlog.log\n\t\t\t\t\t\t\terror log\n\t--postion             save postion of log file\n\n\tHomepage: http://netkiller.github.io\tAuthor: Neo \u003cnetkiller@msn.com\u003e\n\nSource \n------\n\n\t$ git clone https://github.com/netkiller/logging.git\n\t$ cd logging\n\t$ python3 setup.py sdist\n\t$ python3 setup.py install\n\t\n\tcp init.d/ulog /etc/init.d/\n\tchkconfig --add ulog\n\tchkconfig ulog on\n\t\nExample\n-----\n\n\t$ rlog\n\tUsage: rlog [options] filename\n\n\tOptions:\n\t  -h, --help            show this help message and exit\n\t  -H localhost, --host=localhost\n\t\t\t\t\t\t\tpush log to remote host\n\t  -p 1214, --port=1214  port\n\t  --sleep=0.1           with -s, sleep  for  approximately S  seconds between\n\t\t\t\t\t\t\titerations\n\t  -d, --daemon          run as daemon\n\t  -f, --full            Full text\n\t  --stdin               cat file | prog ...\n\n\t  Homepage: http://netkiller.github.io\tAuthor: Neo \u003cnetkiller@msn.com\u003e\n\nSend logs\n-----\n\n\t$ rlog /var/log/nginx/access.log\n\tb'192.168.6.20 - - [11/Dec/2014:15:51:24 +0800] \"GET /home/about.html HTTP/1.1\" 200 7802 \"http://192.168.6.2/home/download.epub.html\" \"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36\"\\n'\n\tb'192.168.6.20 - - [11/Dec/2014:15:51:24 +0800] \"GET /stylesheet.css HTTP/1.1\" 304 0 \"http://192.168.6.2/home/about.html\" \"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36\"\\n'\n\t\n\t# Send log to 192.168.2.1\n\t$ rlog -H192.168.2.1 -p1214 /var/log/nginx/access.log\t\n\t\n\t# Full text log to 192.168.2.1\n\t$ rlog -H192.168.2.1 -p1214 -f /var/log/nginx/access.log\t\n\t\n\t# Daemon mode\n\t$ rlog -H192.168.2.1 -p1214 -d /var/log/nginx/access.log\n\t\n\t# Stdin\n\t$ cat /var/log/nginx/access.log | rlog -H 127.0.0.1 --stdin\n\nLogs collection\n-----\n\t$ collection \n\tUsage: collection [options] module\n\n\tOptions:\n\t  -h, --help            show this help message and exit\n\t  -p 1214, --port=1214  port\n\t  -l /tmp/test.log, --logfile=/tmp/test.log\n\t\t\t\t\t\t\tlog file\n\t  --list                show module message\n\t  -d, --daemon          run as daemon\n\n\t  Homepage: http://netkiller.github.io\tAuthor: Neo \u003cnetkiller@msn.com\u003e\n\t\n\t# show log from port 1214\n\t$ collection -p 1214\n\t\n\t# Save log to file from port 1214\n\t$ collection -p 1214 -l /tmp/test.log\n\t\nAudit log\n------\n[Audit log tools](doc/auditlog.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Flogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetkiller%2Flogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Flogging/lists"}