netkiller-logging


Namenetkiller-logging JSON
Version 0.0.6 PyPI version JSON
download
home_pagehttp://netkiller.github.io
Summarylog send to remote
upload_time2023-02-08 13:33:46
maintainer
docs_urlNone
author
requires_python
licenseBSD
keywords logging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            logging
=======

Install
-------

	[root@localhost ~]# pip3 install netkiller-logging
	
	[root@localhost ~]# whereis rlog 
	rlog: /usr/local/bin/rlog

	[root@localhost ~]# rlog 
	Usage: rlog [options] filename

	Options:
	-h, --help            show this help message and exit
	-H localhost, --host=localhost
							push log to remote host
	-p 1214, --port=1214  port
	--sleep=0.05          with -s, sleep  for  approximately S  seconds between
							iterations
	-d, --daemon          run as daemon
	-f, --full            Full text
	--stdin               cat file | prog ...
	-e /tmp/rlog.log, --errlog=/tmp/rlog.log
							error log
	--postion             save postion of log file

	Homepage: http://netkiller.github.io	Author: Neo <netkiller@msn.com>

Source 
------

	$ git clone https://github.com/netkiller/logging.git
	$ cd logging
	$ python3 setup.py sdist
	$ python3 setup.py install
	
	cp init.d/ulog /etc/init.d/
	chkconfig --add ulog
	chkconfig ulog on
	
Example
-----

	$ rlog
	Usage: rlog [options] filename

	Options:
	  -h, --help            show this help message and exit
	  -H localhost, --host=localhost
							push log to remote host
	  -p 1214, --port=1214  port
	  --sleep=0.1           with -s, sleep  for  approximately S  seconds between
							iterations
	  -d, --daemon          run as daemon
	  -f, --full            Full text
	  --stdin               cat file | prog ...

	  Homepage: http://netkiller.github.io	Author: Neo <netkiller@msn.com>

Send logs
-----

	$ rlog /var/log/nginx/access.log
	b'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'
	b'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'
	
	# Send log to 192.168.2.1
	$ rlog -H192.168.2.1 -p1214 /var/log/nginx/access.log	
	
	# Full text log to 192.168.2.1
	$ rlog -H192.168.2.1 -p1214 -f /var/log/nginx/access.log	
	
	# Daemon mode
	$ rlog -H192.168.2.1 -p1214 -d /var/log/nginx/access.log
	
	# Stdin
	$ cat /var/log/nginx/access.log | rlog -H 127.0.0.1 --stdin

Logs collection
-----
	$ collection 
	Usage: collection [options] module

	Options:
	  -h, --help            show this help message and exit
	  -p 1214, --port=1214  port
	  -l /tmp/test.log, --logfile=/tmp/test.log
							log file
	  --list                show module message
	  -d, --daemon          run as daemon

	  Homepage: http://netkiller.github.io	Author: Neo <netkiller@msn.com>
	
	# show log from port 1214
	$ collection -p 1214
	
	# Save log to file from port 1214
	$ collection -p 1214 -l /tmp/test.log
	
Audit log
------
[Audit log tools](doc/auditlog.md).



            

Raw data

            {
    "_id": null,
    "home_page": "http://netkiller.github.io",
    "name": "netkiller-logging",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "logging",
    "author": "",
    "author_email": "netkiller@msn.com",
    "download_url": "https://files.pythonhosted.org/packages/dc/7e/2fb3209e2eaa33b87a7be75b8ff0b256ac66e9e09a7f72eadda37655e0c3/netkiller-logging-0.0.6.tar.gz",
    "platform": null,
    "description": "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 <netkiller@msn.com>\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 <netkiller@msn.com>\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 <netkiller@msn.com>\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\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "log send to remote",
    "version": "0.0.6",
    "split_keywords": [
        "logging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc7e2fb3209e2eaa33b87a7be75b8ff0b256ac66e9e09a7f72eadda37655e0c3",
                "md5": "4615a549748626c73ac72dc0d79229fb",
                "sha256": "13e03f39f1a2c05f9938111a8577db4b5ae1dacfb20341c5876e7668821daa55"
            },
            "downloads": -1,
            "filename": "netkiller-logging-0.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "4615a549748626c73ac72dc0d79229fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12697,
            "upload_time": "2023-02-08T13:33:46",
            "upload_time_iso_8601": "2023-02-08T13:33:46.351066Z",
            "url": "https://files.pythonhosted.org/packages/dc/7e/2fb3209e2eaa33b87a7be75b8ff0b256ac66e9e09a7f72eadda37655e0c3/netkiller-logging-0.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-08 13:33:46",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "netkiller-logging"
}
        
Elapsed time: 0.04134s