logging

Retrieving information from aggregated weblogs data, how to do it?

Hello, I would like to know how to retrieve data from aggregated logs? This is what I have: - about 30GB daily of uncompressed log data loaded into HDFS (and this will grow soon to about 100GB) This is my idea: - each night this data is processed with Pig - logs are read, split, and custom UDF retrieves data like: timestamp, url, user_id...

Efficient way to continually read in data from a text file

We have a script on an FTP endpoint that monitors the FTP logs spewed out by our FTP daemon. Currently what we do is have a perl script essentially runs a tail -F on the file and sends every single line into a remote MySQL database, with slightly different column content based off the record type. This database has tables for content of...

Logging those hidden stack traces

Hi, I'm develping a GWT application with Ebean. When I deploy it to my Tomcat 6 server, I get an Exception related to Ebean, but I don't know what it is. The stack trace is truncated, and shows the message "... 28 more". How can I see those 28 more? I also use log4j 1.2. Thanks in advanced. This is a copy of the output. Caused by: ja...

Sql Server 2008 Tuning with large transactions (700k+ rows/transaction)

Hi everyone, So, I'm working on a database that I will be adding to my future projects as sort of a supporting db, but I'm having a bit of an issue with it, especially the logs. The database basically needs to be updated once a month. The main table has to be purged and then refilled off of a CSV file. The problem is that Sql Server wi...

Firebug console shortening strings in array logged?

Hello all! I have a custom logging function to log to the firebug console that looks like this: // the name here is just for fun function ninjaConsoleLog() { var slicer = Array.prototype.slice; var args = slicer.call(arguments); console.log(args); } And it works exactly like I want it to....except that if I have string v...

How to redirect my log output from logcat to the SD-Card on an android device?

I'm trying to redirect the log of my app to the sdcard file. But i failed to do so. I'm trying something like this. String cmd= "logcat -v time ActivityManager:W myapp:D *:* >\""+file.getAbsolutePath()+"\""; Runtime.getRuntime().exec(cmd); I tried the -f option also but it is not working either. ...

Why can't I trace just errors on the service side of my WCF?

I have a wcf service that sometimes creates errors like "The InnerException message was 'Maximum number of items that can be serialized or deserialized in an object graph is '65536'". I know how to fix this particular problem, but now I want to create a trace that saves only Errors (and Critical errors) to the log. The problem is that m...

Lightweight logging library for ASP.NET MVC 2

Hi everyone! I need a lightweight logging library for ASP.NET MVC2. It only needs to support storage of messages in the database and sending emails for critical errors. What do you recommend besides log4net? Thank you. ...

pattern for logging using enterprise library

hi folks, on our current project we decide to use enterprise library for logging, upto now we used only log4net, but I can not find any advice how to really use the library in flexible way, what I mean is in log4net this would be the way: //define this in MyClass private static readonly ILog log = LogManager.GetLogger(typeof(MyClass)...

log4net: writing a header to each rollover log segment

I have a RollingFileAppender that rolls over the log file when it reaches a specified file size. This works great. Is there a way to have log4net insert a header at the top of each newly created log file? Alternatively, is there a way to be notified by log4net when a roll over occurs so that I can write this header myself? ...

Can't pickle loggers??

Working on a project that requires that I am able to pickle the container object at any point, since we expect it to fail on external conditions quite frequently and be able to statefully pick up where we left off. I'm using the python logging library quite extensively, and all of my classes start by setting up a logger like: class foo...

Debuging 403's?

whats the best way to investigate why a server is returning a 403 for a http web request? Can an iis server be configured to provide a more detailed internal log for 403's? ...

how to make log4j to write to the console as well

Hi, Is there any way to tell to log4j to write its log to the file and to the console? thanks there are my properties: log4j.rootLogger=DEBUG,console,R log4j.rootLogger=INFO, FILE log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.Target=System.out log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout...

how to log error to file, and not fail on exception

I am downloading a file from the net, and it fails even though I am doing: for p in query: try: except IOError as e: print e; If there is an error, I want to log it, and then continue on with the next file. In this loop, I am trying to download an image, if for some reason the filename was bad, or the website was down, etc., I w...

From a python cgi can I write to Lighttpd log file?

I have a python cgi script (just python, I didn't use any framework). It's served using Lighttpd on openSUSE. I would like to redirect my logging statements (like logging.info and so on) to be included to Lighttpd log file. If this can't be done, how can I create my own log file? ...

General logging with ELMAH

Is ELMAH a good tool for general logging (Read: Audit logging)? ...

How do I configure Spring and SLF4J so that I can get logging?

I've got a maven & spring app that I want logging in. I'm keen to use SLF4J. I want to put all my config files into a directory {classpath}/config including log4j.xml and then init using a spring bean. e.g. <bean id="log4jInitialization" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="ta...

Logging suite with back-end for PHP?

Does anybody know an all-purpose logging suite for PHP applications? By "suite" I mean a lightweight library of logging functions as well as a mature back-end to view them. The back-end would have to be configurable and show log entries using functions like Filter by date Filter by event (Warning, error, custom event) Filter by categ...

ASP.Net Page for file upload stops processing in middle of log statement

We have a very simple ASP.Net page for uploading a file to our webserver. The page has no controls - a client uses it to automatically send us a file each night. On occasion, the file seems to not get to us, but the client reports that they have sent it. We added some logging statements to the page, and discovered something quite odd....

Put username in apache access_log with PHP and without HTTP auth

In the Apache log configuration it is possible to specify that the HTTP auth user name should be logged. Most PHP scripts have their own, cookie-based authentication. Is it possible in PHP to provide Apache with a HTTP auth username for logging purposes, even if the authentication is cookie-based? If yes, how would the code look like? If...