Coder Social home page Coder Social logo

timestamplogparser's Introduction

Timestamp Log Parser (TLP)

Meta:

  • Version: 0.4
  • Author: Dreambig Ou (dreambig.ou[at]gmail.com)
  • Language: C# (.Net 4.5) on Vistual Studio 2012
  • Platform: Windows

###Description###

Timestamp Log Parser (TLP) is deisgned to pre-process the log data. Developers can use the output file for other numerical analyis software such as Excel. TLP is for calcuating the time consuming between each stage in software components. For example, a messages oriented middleware (MOM) is using to deliver the message to another software component. We want to evaluate how much time does a message spend between each processing stage of software components.

###Format###

####Input file#### Input file could be one or multiple text files (.txt or .csv). Each line records a data. The format should be:

MessageID,Event,StageName,Timestamp
  • MessageID:

    Datatype: sting or integer.

    Description: MessageID should be unique identified.

  • Event:

    Datatype: sting or integer.

    Description: To indentify what type of record.

  • StageName:

    Datatype: sting or integer.

    Description: To identify which stage when records the data.

  • Timestamp:

    Datatype: integer.

    Description: Current version of TLP only supports integer. Timestamp should be monotonic increasing (avoid time drift problem in the OS). For unix developers, you can use "CLOCK_MONOTONIC" in "clock_gettime". We will make it support other formated timestamp in the next version.

####Output file#### Output file is calculate by TLP to record time period between each stage. The first row records the header line of the file. The 3rd clounmn to the (n-1)-th column records the time period spending on each stages. The n-th column records the overall time sepnding on the all software components. The record data start at the second row of output file.

    Exapmle: MessageID,Event,T1-T0,T2-T1,T3-T2,T4-T3,Overall

####Usage####

	Example: .\TimestampLogParser.exe "Input1.txt,Input2.txt...InputN.txt" Output.txt "Stage1,Stage2,Stage3"
  • First parameter: Input files

    Mutiple files should be separated by comma (,). The connected string shoud be placed in the double quotes (""). No sapce between each stage.

  • Second parameter: Output file

    If it does not exist, the TLP will create it.

  • Third parameter: Stages anme

    Stage name shown in the input files. Mutiple stages should be separated by comma (,). The connected string shoud placed in the double quotes (""). No sapce between each stage.

  • Sample

    The sample input files are Input1.txt to Input3.txt. There are two types of message (i.e., "event" shown in the input file) and one message each. There are three components to process the messages and each component has two stage ex: T1 (into the component) and T2 (out of the component) for component 1. (Note: "Stage1,Stage2,Stage3" should be in the order.)

    Try: .\TimestampLogParser.exe "Input1.txt,Input2.txt,Input3.txt" Output.txt "T1,T2,T3,T4,T5,T6"
    

##Copyright and license##

Copyright 2013 Dreambig Ou.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

timestamplogparser's People

Contributors

dreambigou avatar

Watchers

James Cloos avatar

Forkers

phtsai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.