Skip to main content

Counts network traffic to and from local addresses using pcap. Stores data in an SQLite database for 60 seconds periods. Generates simple reports. Reports can have IP address labelled. Other reports can be generated using SQL and custom scripts. Labels traffic during 1:00 AM and 7:00 AM as free (that’s how my ISP works).

This package install only one script named traflog.

Start collecting data:

$ sudo traflog --net 192.168.1.0 --mask 255.255.255.0 /var/lib/traffic.sqlite

(You probably want to run this as a service.)

Generate report:

$ traflog --report --hours=24 /var/lib/traffic.sqlite
addr              nonfree      free
-----------------------------------
192.168.1.5          0.00      0.00  router.tplink
192.168.1.103      318.00      1.00  julia.samsung
192.168.1.104       81.00      0.00  rebekka
192.168.1.105        0.00      0.00  ?
192.168.1.108       17.00      0.00  ?
192.168.1.125      259.00     15.00  umonkey.dell

Metadata

Release files for traflog 1.12

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

Source distribution (sdist)

Source distribution for traflog 1.12
File Size Uploaded
traflog-1.12.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for traflog 1.12
File Interpreter ABI Platform
traflog-1.12-py2-none-any.whl Python 2 none any Details

Total release size: 10.4 kB

Release files / traflog-1.12.tar.gz

Download URL traflog-1.12.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6cdd0bc9bd3f599097bc75f66c3f382140a5badc0edbb3a28a9da76efc537027
BLAKE2b-256 checksum
How to use checksums
1230b4a57a55ea8bbefae8f98ed119727b7ed45a0134973157656835cfab6041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / traflog-1.12-py2-none-any.whl

Download URL traflog-1.12-py2-none-any.whl
Size 6.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
03bf537f26b56956c50f859bb70ea7ea1ad5f79e5d9efcddc7210f99e6ae2fcb
BLAKE2b-256 checksum
How to use checksums
dde7616e4d92a6d34d84770847032ccdb91e84a97e5361a5e908152570abfa70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.12 This release

2 release files

1.10

2 release files

1.9

2 release files

1.7

2 release files

1.6

2 release files

1.5

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

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