IS THIS POSSIBLE: Creating a virtual file

  • Thread starter Thread starter dfcoates
  • Start date Start date
D

dfcoates

Here's the situation:

I have several 3rd party applications that write trace files and log
files. We are now being mandated to "scrub" the trace files and log
files in realtime. "scrub" = remove sensitive data from trace/log.

We only have the ability to specify the log file location in each of
these various 3rd party applications.

Is it possible to create some sort of "virtual file" that the 3rd party
app writes to that, in reality, is my application, which will scrub the
data and write out the actual log as data arrives?

If so, how and where can I find resources regarding such an endeavor?

I apologize if this should go to another group. E-mail me if you think
this should be cross posted somewhere else.

Thanks,

Dan Coates
(e-mail address removed)
 
are you just using file appends to write your log data, or are you using
a logging tool (log4net, Trace namespace?)
 
I am not sure since the application is 3rd party and I do not have
access to the source code. I will also that this is in a Windows
environment. I realize that there are probably ways around this in
*nix, but that's not an option.

Thanks for the question,

Dan Coates
(e-mail address removed)
 
Hard work IMO.

I would see rather this as something that is configurable in those third
party applications or perhaps if you can "hook up" in the logging process
(such as in ASP.NET 2.0 applications that seems to be "easily" configurable
in this respect).

FileWatcher would allow to trap change events but you would then have to
read the log, stip the info and rewrite the log while the application
continues to write in his log...

Good luck.
 
Back
Top