logging

Displaying access log analysis

I'm doing some work to analyse the access logs from a Catalyst web application. The data is from the load balancers in front of the web farm and totals about 35Gb per day. It's stored in a Hadoop HDFS filesystem and I use MapReduce (via Dumbo, which is great) to crunch the numbers. The purpose of the analysis is try to establish a usage...

Monitor account activity for SQL Server 2005

I'm looking for the easiest way to view what users are logging into my database. We have some old user accounts that might not be getting used anymore. Instead of just turning them off and seeing who complains, I thought there might be some way to monitor who logs in and runs some type of query over the next month or so. What would be th...

How to log the memory consumption on Linux?

Is there any ready-to-use solution to log the memory consumption from the start of the system? I'd like to log the data to simple text file or some database so I can analyze it later. I'm working on Linux 2.4-based embedded system. I need to debug the problem related to memory consumption. My application automatically start on every sys...

Physical/in-Memory database. (for logging purposes on my website)

We all know MYSQL. We all know memcached. I love memcached. You have a string key , and it returns a value. Dead simple. Is there a database for memory? For example, I am building a website that needs to keep track of LOGGING. Everything people do...I need to keep track of. But it would be slow to write to disk every time someone hi...

What information should/shouldn't an error page display in a web application?

I'm developing a number of error views for an ASP.NET MVC application (a not-found, unknown and general error view) and I'm curious to know how others would answer these questions: What kind of verbage do you include on these pages? What kind of information do you display to the end user? What information do you log? I don't think th...

Threadsafe logging

Hi All! I want to implement a simple class for logging from multiple threads. The idea there is, that each object that wants to log stuff, receives an ostream-object that it can write messages to using the usual operators. The desired behaviour is, that the messages are added to the log when the stream is flushed. This way, messages wil...

Windows Azure logging: WADLogsTable as Application logs?

With the new changes in Diagnostics monitoring with November Windows Azure CTP, based on what I’ve seen with logging samples I have the following question: Is it a best practice to just use WADLogsTable as the Application log table since you get a lot more baked in features around filtering and configuration etc.? Or do we just have to...

How do I get HTTP::Proxy to log filter information?

I'm having some trouble getting filters working with HTTP::Proxy and I just can't seem to figure out what I should add to the logmask() function to get that information. I've got a log file, that part is fine, logging is happening, but no information about filters, although they're implemented and (sometimes) working. I've tried log...

Best practices for logging on top of logging levels

Generally, log levels can be switched to get different level of detailed logs. Usually a lowest level of log often can help one to identify which area of the codes could be wrong. To further debug, one usually increases the debug level to get more information. However, this results in unnecessary large amount of logs that is not relat...

How to record the name of the file/line that called the current function in PHP?

I am writing a lightweight logging class in php. How do I automatically record the filename/function/line number where the function in the Log class is being called from and save the line number and time and stuff without making my users bother with entering $__LINE__ and $__FILE__ every time they call the function. Is there something ...

Logging custom actions in asp.net mvc using built-in forms authentication

Hello, I am using the built-in forms authentication that comes with asp.net mvc. I added all the necessary tables to Sql Server using aspnet_regsql wizard and I have it all integrated and working perfect. Now I can add users, log in, perform control Authorization and all these things. The next step is to add some basic logs when a user...

C#.NET 2.0 - Getting ConfigurationError, configuration section for Logging cannot be found, when running test framewlork

Hello - We have a solution that comprises several projects. I came on not too long ago, and started adding functionality to one of the projects. We are using the Enterprise Library 3.1 Logging Application Block for logging. We have been talking about Unit Testing (who hasn't) but haven't tried to add it until today. I decided to use...

how to implement logging in multithreaded ASP.NET web application (asmx web service)

I'm developing a time-critical ASMX web service and I'm currently using own class with static methods to write lines to shared log file. Logging is not guarded by locks/Monitors because application writes log quite a lot. I don't know what happens if a thread is scheduled out while in static method writing a line and another thread sched...

Lightweight use of Enterprise Library TraceListeners

Is it possible to use the Enterprise Library 4.1 TraceListeners without using the entire Enterprise Library Logging AB? I'd prefer to simply use .NET Diagnostics Tracing, but would like to setup a listener that sends emails on Error events. I figured I could use the Enterprise Library EmailTraceListener. However, my initial attempts to c...

starting tomcat as a service isn't logging in catalina.out

Pretty simple: When I run startup.sh or shutdown.sh information is logged into catalina.out When I run it as a service (i.e. sudo service tomcat6 start/stop) nothing is written to that log. Is it logging somewhere else? Is it logging at all? This is a fresh install of tomcat6 on ubuntu 9.10 ...

NHibernate without log4net?

The problem is NHibernates dependany on log4net. I am trying to build an IoC app with interchangable Loggers, and this thing gets in the way. Is there a build out there without this dependancy or do I have to do some open source code hacking myself? ...

How to detect if page load in newly-started browser process fails?

Hello, I use Process.Start("firefox.exe", "http://localhost/page.aspx"); And how i can know page fails or no? OR How to know via HttpWebRequest, HttpWebResponse page fails or not? When i use HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create("somepage.aspx"); HttpWebResponse loWebResponse = (HttpWebResponse)myReq.GetResponse(); C...

how to instantiate C# TraceSources to log (multithreaded) ASP.NET 2.0 Web application (asmx ws)?

None of the examples on TraceSource I found addresses multithreading. I create new instance of a class (SyncService) to serve a incoming request. When there is lots of activity there is multiple threads that need to use this TraceSource to log activities. How should I use this class for logging with performance and thread safety in mind?...

how to get Compiler error message? asp.net

Hi, how can I get Compiler Error Message if a have pageUrl. I'm tried using HttpWebRequest class, but haven't get result yet. Problem that, i have collection of pages, than must execute automatically. and if page fails, create log. thank you ...

log4net log file modification date older than log entry date. Time machine?

We have this strange bug report from a customer: "Log file last modification date is older than log entry time stamp in it". The difference is in days (~2 days). It is not a constant thing - just one known case so far. I am not a guru in log4net implementation - only using it as a 3rd party. Given the loggers configuration is provided ...