Home
TrafMeter Web Online Help
TrafMeter
What is TrafMeter?
License Agreement
TrafMeter Editions
Registration Info
How To Contact Us
Description
System requirements
Introduction
Installation Package
Installation Guide
Opening the configuration
Selecting NIC
Capturing the traffic
TrafMeter Service Monitor
User authentication
Sending SMS
NAT
Traffic Shaper
Viewing the Traffic Counters
Processing the captured packet
Logging the Application Events
Logging the denied packets
Firewall
Zeroing counters
Users
Filter Manager
Filter Editor
Rule Editor
IP Address Groups
Database Connection String
XML Traffic Reports
Using XSL formatting
The example of XSL formatting
The example of XSL formatting (2)
Traffic Logging into the Database
Database table
Packet Logging
Into the plaintext file
Filename template
Into the database
Database Table
Microsoft SQL Server Syntax
MySQL Server Syntax
Microsoft Access Syntax
Useful SQL scripts
Host Header Logging
Into the plaintext file
Into the database
Database Table
Microsoft SQL Server Syntax
MySQL Server Syntax
Microsoft Access Syntax
Result Codes
Counting VPN packests
Table for storing Filter Names
Registry Settings
FAQ
TrafMeter FAQ
Traffic counting with TrafMeter FAQ
Configuration examples
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6
Example 7
Example 8
Knowledge base
IP protocol number
Type Of Service (ToS) field
MAC address
Promiscuous mode
Ethernet hub
Ethernet switch
Ethernet
NAT router
HOWTO: Creating an OLE DB Connection String for Microsoft SQL Server
HOWTO: Creating an OLE DB Connection String for an Access
HOWTO: Creating an OLE DB Connection String for MySQL
Manual editing of the XML files
Zeroing counters using TrafReset
How to enable
Reloading the Filterset
TrafMeter :: Packet Logging into the database

Packet Logging into the database

Packet Logging into database provides a powerful technique to store and to analyze the IP packets, matching at least one rule listed in the filter. To use this feature you should specify:

 Note

  • You should manually create the database table before TrafMeter records the packets.

The method of storing the IP addresses

  • As char data type. The fields src_ip (source IP address) and dst_ip (destination IP address) must be char(16) data type.
  • As unsigned int data type. Before recording the packet, the source and destination IP addresses are converted into 32-bit unsigned int data type. For example, the IP address 192.168.4.2 will have 3232236546 in unsigned int equivalent. This allows reducing the database used space.
  • As signed int data type. Before recording the packet, the source and destination IP addresses are converted into 32-bit signed int data type and the source and destination port number are converted into 16-bit signed int.

 Note

  • Microsoft SQL Server doesn't have unsigned int data type. Use bigint data type instead or signed int data type.

See also:

 

This HTML Help has been published using the chm2web software.