log

Parse a log file and get entry data

I have a big log file with multiple lines separated by new line. Each line entry stores four values. If I am reading the log file and want to store this information, what data type/object should I use? Example: source1 destination1 result time source2 destination1 result time sources3 destination2 result time The values are not uni...

Bash script log file rotation

My bash script produces a log file. Now i'd like to implement some log file rotation. Let's say the first time it's called somelog.log, the next time it's renamed to somelog.log.1 and the new log file somelog.log.The third time the new log is somelog.log again, but somelog.log.1 is renamed to somelog.log.2 and the old somelog.log to some...

PHP Sessions problem, help please.

Hi guys, I'm making an item shop for a game of my friends, when accessing the shop, I have it check the session to see if you are logged in, if you are it will take you to the shop, if you aren't it will give you a login page, the way I do that is like this. <?php if($_SESSION['LoggedIn'] == 1) { //Shop stuff here } else ...

Parse log file and get matching data

From the big log file (about like 2532910 lines), the lines that I am looking for are very few (like 10 or 12). What is the best way to match and read these lines? My code is in c#. Is there a way a reader/stream can read only a pattern matching data? Thanks ...

HTML5 Local Storage - Creating and writing to a json file?

Hi all, We are building a web application using SVG & JS. The log file for this application needs to be created on the client side and then finally uploaded to the server once the project is ended. As we donot wish to go near ActiveX controls, is it possible to achieve this with the new HTML5 'Local Storage'? Isnt that what 'Local Stor...

How to define apache's logrotation's file name using an external shell script

Guys, I have apache running on different servers, I would like to rsync log files back to a centralised server on a daily basis. I can use log rotate to create log file for a day and put it in a directory that gets rsync'd to the central server. However is there any way to set the log filename with a designation that could be read from ...

Strategy for extracting messages of most useful commits to changelog

The needs for this question is to have a changelog for managers/customers that: does include "Let users have additional addresses" does not include "Fixed the bug where addresses were overwritten due to X" avoid having to look through complete log history to find the most important commits (most often backwards incompatible) for e...

DML operation with out logging - SQL Server

Is there any way that we can do DML operation with out logging it into log file? For example, when I am inserting a row in database, this operation will be logged in log file irrespective of using transaction or not. But I don't want to log this operation in the log file. ...

How to log calls to webservice via SOAP in PHP

Hi I am using a third party webservice via SOAP from a HTML page: http://www.monirulislam.com/test/gmap/HMap_GMapV2.html This page refers to a proxy page (in PHP): monirulislam.com/test/gmap/HeatMapGenerateProxy.php Now I need to know what parameters are being passed by the PHP file, what the webservice is returning etc. i.e. log all ...

Nice remote apache log viewer

I have a server with 10+ virtual domains (most running Mediawiki). I'd like to be able to watch their traffic remotely with something nicer than tail -f . I could cobble something together, but was wondering if something super-deluxe already exists that involves a minimum of hacking and support. This is mostly to understand what's going ...

Parsing apache logs using PostgreSQL

This O'Reilly article gives an example of a PostgreSQL statement that parses an Apache log line: INSERT INTO http_log(log_date,ip_addr,record) SELECT CAST(substr(record,strpos(record,'[')+1,20) AS date), CAST(substr(record,0,strpos(record,' ')) AS cidr), record FROM tmp_apache; Obviously this only extrac...

parse an active log file

Looking for a little help getting started on a little project i've had in the back of my mind for a while. I have log file(s) varying in size depending on how often they are cleaned from 50-500MB. I'd like to write a program that will monitor the log file while its actively being written to. when in use it's being changed pretty quickl...

Returning a reference to an object in PHP

I'm using PHP 5.2.14 and PearLog 1.12.3. The latest documentation from the singleton method in Log.php (PEARLog) states: You MUST call this method with the $var = &Log::singleton()syntax. Without the ampersand (&) in front of the method name, you will not get a reference; you will get a copy. However, doing so generates the...

How to use an external build log in XCode

I was wondering if it is somehow possible to open an external build log (for example the result of a simple make script) in XCode to process the errors and warnings? In other words: can XCode be used as an Editor and still process an external build log? ...

Access.Log Analyzer

Just a quick question. I use Ubuntu as a server and as a desktop. Does anyone have any ideas for a nice access.log analyzer? It could be a program that I download to the desktop or the server. Thanks. ...

Easy way to compute Queries Per Second value, based on log, with shell

We're able to tail the traffic on a server that we host : ... +1287737841.266952 ... +1287737841.267117 ... +1287737841.267136 ... +1287737841.278288 ... +1287737841.278310 ... +1287737841.278321 ... +1287737841.278331 ... +1287737841.278341 ... ... As you can see they include timestamps, down to the micro-second! I just want to be ab...

Can I get SVN log over http request on Assembla server?

Is it possible to access an svn log without having svn installed? I'm trying to access a log of recently changed (committed) files on Assembla, but the hosted web server from which I'd like to send this request doesn't have svn installed. Since all I'm doing is sending the svn server a few parameters like my name, password, output format...

Adding tracelistener to web.config

I want to use below code with a website. Which config sections I should add to web.config to log the output into a file or windows eventlog ? using System.Diagnostics; // Singleton in real code Class Logger { // In constructor: Trace.AutoFlush = false; public void Log(message) { String formattedLog = formatLog(message)...

Qtestlib log window

I link my program against the qtestlib and include QTest. But then I get a log-window which prompts all the qDebugs, when the application starts even if I set the configuration to release or debug. Is it possible to include QTest without opening a log-window on application start? I need some functionality of QTest in my program. Note t...

Matplotlib - Data disappears when I switch to a semilog plot

Hi, I am trying to plot do a basic semilog plot using pyplot and matplotlib, with the y-axis being the logarithmic scale. I am using the following code: pylab.figure(num=None,figsize=(8,6)) pylab.plot(x_loc,var1,x_loc,var2) \#pylab.yscale('log') pylab.xlabel('$y/L_{1/2}$',fontsize=18) pylab.ylabel('$n/n_{max}$',fontsize=18) ...