Item10637: Allow IP addresses to be supressed from logs
Priority: Enhancement
Current State: Closed
Released In: 1.1.4
Target Release: patch
Implement
SupportStrippingIPsFromLogfiles
--
GeorgeClark - 15 Apr 2011
CharlesAdicke: I can work on implementing this for 1.1.4 unless you are interested in committing your fixes. I'd like to make the config option {Log}{SuppressIP}, with default or missing as false, to minimize any impact on installed sites.
--
GeorgeClark - 15 Apr 2011
Yes George, please go ahead with your implementation.
Thanks a lot for taking this over!
--
CharlesAdicke - 18 Apr 2011
this is a good (and sometimes necessary) feature, but i wish it would go through some sort of "plugin function"/api. that way, an anonymizer could be implemented, not simply a stripper.
--
WillNorris - 18 Apr 2011
Resetting the clock on the feature proposal, so this can be discussed a bit more.
--
GeorgeClark - 18 Apr 2011
Thats true too. Do you see the need for an API instead of an binary strip/no-strip option?
Otherwise I would suggest first going with the option and if the need arises an API function for the logging could be implemented. No need to implement an API maybe nobody needs.
--
CharlesAdicke - 30 Apr 2011
Implementing this as a new logger type
Foswiki::Loggger::PlainFile::Obfuscating
. It can either mask the IP (
x.x.x.x
) or obfuscate it by replacing it with the first 4 bytes of the md5 hash of the original fileld. Will commit to 1.1.4 since the new logger type shouldn't cause any issues if not chosen, it's low risk.
--
GeorgeClark - 29 Sep 2011