I've scripted up a simple ksh that calls a Perl program to find and replace in files.
The passed-in arg is the home directory:
perl -pi -e 's/find/replace/g' $1/*.html
It works great. However, I'd like to output all the changes to a log file. I've tried piping and redirecting and haven't been able to get it work. Any ideas?
Thank...
I am creating a client side application which needs to create a log of the user activity but for various reasons this log must not be human readable.
Currently for my development I am creating a plain text log which looks something like this:
12/03/2009 08:34:21 -> User 'Bob' logged in
12/03/2009 08:34:28 -> Navigated to config page
12...
The user id on your connection string is not a variable and is different from the user id (can be GUID for example) of your program. How do you audit log deletes if your connection string's user id is static?
[EDIT]
The best place to log insert/update/delete is through triggers. But with static connection string, it's hard to log wh...
How would I 'attach' a console/terminal-view to an applications output so I can see what it may be saying?
How would I detach from an applications output without killing the application?
Normally if you fire up a talkative application using the command line you get to see all kinds of wonderful output. However lets say I have a particu...
I've got a log file on my database whose size is 303 MB and %used is 3.19.
I'm pretty sure the transaction volume is limited to a few tables. The database and log are backed up nightly.
How do I assess my log to determine:
whether I can shrink the allocated space, and thus the log
how big my log grows daily/weekly?
Do I check the l...
Does anyone know of a good commercial or open source solution for pulling and rotating application logs from a bunch of disparate servers to a central server where you can catalog them by year/month/date/hour etc... this needs to be something that will work on windows.
...
I'm looking for a log file viewer plugin for Eclipse possibly having the following features:
custom highlighting of lines
custom line filters, possibly with regEx
tail following
The discontinued Eclipse Logfile Viewer has nice highlighting but no line filters.
There seem to be good standalone programs like TraceTool which misses the...
Hi
I want to create a Log file in SSIS...
I know hoe to create through management studio.but i wanted to run my SSIS package through Command Prompt...
can you help me to get the DOS commands for that?
...
Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload?
I often stumble when I see old errors in the log, that doesn't still exist.
...
Hi All,
I have a rails application that about 3 years old, and I'm having a problem with my pages making too many queries. Every page that loads has several lines that look like this:
ReqTdsLink Columns (1.0ms) SHOW FIELDS FROM `req_tds_links`
what sort of method call would cause this output in the log? I can't find any before fil...
Hi,
I just enabled Failed Request Tracing for a site and I get a URL_CHANGED event as the third item on the log.
1. GENERAL_REQUEST_START SiteId="1", AppPoolId="DefaultAppPool", ConnId="1610613013", RawConnId="0", RequestURL="http://example.com:80/test/wp-admin/", RequestVerb="GET" 15:35:54.176
2. GENERAL_SET_REQUEST_HEADER HeaderName...
I have a ASMX web services running as 'network service'. I want to be able to write to a custom event log every time a web service is called (and when errors happen).
I have created a new event log (MyLog) using the following code running as admin on a Windows server 2008 machine:
if (!EventLog.SourceExists(APPLICATIONN...
I am using this script for a piped log setup in Apache 2:
#!/usr/local/bin/perl
$|=1; # Use unbuffered output
while (<STDIN>)
{
if (<STDIN> =~ m/(.php|.html|.htm|.dhtml|.cpp|.h|.c|.txt|.pdf|.pl)$/)
{system("beep");}
}
I am sending in the directive %f to give it the filename. As you can tell, it checks to see if the requested...
Hello,
I need to parse very large log files (>1Gb, <5Gb) - actually I need to strip the data into objects so I can store them in a DB. The log file is sequential (no line breaks), like:
TIMESTAMP=20090101000000;PARAM1=Value11;PARAM2=Value21;PARAM3=Value31;TIMESTAMP=20090101000100;PARAM1=Value11;PARAM2=Value21;PARAM3=Value31;TIMESTAMP=2...
I have like a log.txt file which contains:
MyName
My batch:
@echo off
set name= [log.txt]
in the [log.txt] part, it should read 'MyName' from the log.txt file, to set it as 'name'.
How?
...
How can I write a log for sharepoint BDC List webpart?
I want to know that which sql query bdc list webpart send to the database.
Like I am filtering webpart on "Test". So, what would be the sql query?
Either SELECT * FROM TABLE WHERE A='TEST' OR SELECT @ FROM TABLE?
Is there any way to check what request sharepoint send to my Oracle da...
If so the following one-liner utilizing awk might provide a useful template
svn log -v -r{2009-05-21}:HEAD | awk '/^r[0-9]+ / {user=$3} /yms_web/ {if (user=="george") {print $2}}' | sort | uniq
...
I am working on adding some nagios alerts to our system -- some of which will monitoring the rate of certain events hitting the nginx/apache logs (or parsing values from those logs.) The way I've approached the problem so far is with a simple shell script tail -f'ing the log for 25 seconds or so to a temporary file, killing the process, ...
I have an ASP.NET 3.5 application (on IIS 6.0) which uses ASP.NET forms authentication. In my IIS logs, I have extended logging turned on including the cs-username field. Even after a user has logged in to my site, the cs-username still displays '-'.
Is there a way to get the authenticated ASP.NET user's name to appear in the username f...
Hi Guys,
I have never used log parser before..
well I am getting this error now.. i don't know the reason..
Retrieving the COM class factory for component with CLSID {8CFEBA94-3FC2-45CA-B9A5-9EDACF704F66} failed due to the following error: 80040154.
can ya help me out with this..
:)
...