Skip to main content

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.

Metadata

Release files for netkiller-logging 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for netkiller-logging 0.0.6
File Size Uploaded Provenance Actions
netkiller-logging-0.0.6.tar.gz 12.7 kB Without provenance Details for netkiller-logging-0.0.6.tar.gz

Release files / netkiller-logging-0.0.6.tar.gz

Download URL netkiller-logging-0.0.6.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
13e03f39f1a2c05f9938111a8577db4b5ae1dacfb20341c5876e7668821daa55
BLAKE2b-256 checksum
How to use checksums
dc7e2fb3209e2eaa33b87a7be75b8ff0b256ac66e9e09a7f72eadda37655e0c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for netkiller-logging 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page