Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Exclude ip in logExclude ip in log
Previous
 
Next
New Post
5/12/2009 5:30 AM
 

Hello,

I would like to exclude local ip address in the log of site, in order to catch only external access. There is a way to do this? Where can I add local ip addresses?

Thank You!

 
New Post
5/12/2009 3:11 PM
 

As far as I know there is no way to do this with the site log functionality.  You could make a scheduled task quite easily to be able to remove the entries on a regular basis though.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/13/2009 10:27 AM
 

Good idea, but how can I use SQL instructions in scheduled task?

 
New Post
5/13/2009 11:01 AM
 

There are some modules out there that allow you to schedule SQL jobs.  I'm working on enhancements to my SQL Scheduled Jobs module that will allow you to modify and create your own jobs as well.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/20/2009 3:15 AM
 

My final choise is the creation of a trigger. I post this in the case someone else want to avoid the inserting of local ip addresses in sitelog table:

CREATE TRIGGER ExclusionOfLocaIPAddresses ON [dbo].[SiteLog]
INSTEAD OF INSERT
AS

DECLARE @UserHostAddress as nvarchar(255)

SET @UserHostAddress = (SELECT UserHostAddress FROM Inserted)

IF     NOT (
        @UserHostAddress = '127.0.0.1' OR
        (CHARINDEX('192.168.1.', @UserHostAddress, 0) = 1 AND CHARINDEX('.', @UserHostAddress, 13) = 0 )
    )
BEGIN
    INSERT INTO SiteLog (DateTime, PortalId, UserId, Referrer, Url, UserAgent, UserHostAddress, UserHostName, TabId, AffiliateId)
    SELECT
    DateTime, PortalId, UserId, Referrer, Url, UserAgent, UserHostAddress, UserHostName, TabId, AffiliateId FROM Inserted

END

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Exclude ip in logExclude ip in log


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out