Sawmill

DOWNLOAD
SAWMILL 8.5.6
free trial!!
Home Products Downloads Purchase Support About About
Sawmill Sawmill

SAWMILLFORUM

Sawmill Discussion Forum

Subject: "IP Address filtering"     Previous Topic | Next Topic
Printer-friendly copy    
Conferences Support Topic #4634
Reading Topic #4634
FC01
Member since May-5-04
6 posts
Apr-19-12, 05:33 AM (PDT)
Click to EMail FC01 Click to send private message to FC01 Click to add this user to your buddy list  
"IP Address filtering"
 
  
Hello

I have a text file containing almost 50 IP Addresses that I wish to exclude from my reports. Other than creating a structured filter and entering each address manually, is there a way for Sawmill to read the text file and reject the ip addresses it contains.


thanks


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
dgilmoreadmin
Member since Nov-18-04
3758 posts
Apr-24-12, 10:06 AM (PDT)
Click to EMail dgilmore Click to send private message to dgilmore Click to view user profileClick to add this user to your buddy list Click to send message via AOL IM  
1. "RE: IP Address filtering"
In response to message #0
 
Hi-

You can setup a mapping file of the IP addresses, and then reject by comparing the IP address to the map file.

The method would be first to create the map file, which is a CFG file in Sawmill.

The CFG file name would be myips.cfg

the internal name would be:

myips = {
192_168_1_2 = "true"
192_168_155_155 = "true"
} # myips

then you'd create an advanced log filter:

v.c_ip = replace_all(c_ip, ".", "_");
if (subnode_exists("myips", v.c_ip)) then "reject";

Then you will need to place the file "myips.cfg" into the Sawmill install folder, LogAnalysisInfo.

Rebuild the database, and the IPs you'd like to exclude should be removed. Note that the field name "c_ip" above is the client IP field, you will need replace the name "c_ip" with whatever IP address field you are attempting to reject on, e.g. destination_ip" or something like that. The log field names are in the config->log fields section, and you'll need to use the internal Sawmill identifier.

Hope this helps, if you have questions let me know.

David
Sawmill Product Support Team
support@flowerfire.com


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top

Conferences | Topics | Previous Topic | Next Topic
© 2012 Flowerfire | Copyright | Privacy Policy | License Agreement | Terms of Use | Contact | Feedback | About
Sawmill Software
Sawmill Software
Back to Sawmill Home