Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4036798
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:16:04+00:00 2026-05-20T12:16:04+00:00

Almost 6 months ago, I asked a question on stackoverflow Software to help in

  • 0

Almost 6 months ago, I asked a question on stackoverflow “Software to help in log analysis?“

Please look at that question before reading ahead.

It turned out that there is no good software available currently that can intermix log files based on timestamps and present them in a good UI.

I wanted to take initiative and develop something and open source it once its completed.

Earlier, I worked around by writing a quick and dirty piece of code in c++, that would generate a tab separated file (like csv but tab separated) which I would later opened in Excel.

I am not satisfied with my c++ code for the following reasons:
1. It totally depends on Excel to view the output file later.
2. Since there is no UI involved, its not easy to write its commandline everytime.
3. Because of the learning curve of the commandline, its not so much sharable with other team members (and the world).

For the above reasons (and a few more), I was thinking to develop that as a web solution. That way I can share the working instance with everyone.

What I have in mind is a web based solution something like this:

  • The user will be able to give the input log files using HTML5’s File API.
  • And then user would probably tell the format of the timestamp associated with each log file.
  • Thereafter, the javascript would process those log files into intermixed HTML output in a table.

I am just a beginner in web based technologies. So I need your help in determining if this would be the best way to go about it?

I want a web solution, but that doesn’t mean I want user to upload his log files for backend processing. I want a web-based client only solution.

Thanks for your inputs.

EDIT: Based on comment below by Raynos

@bits You do realise that browsers
were not meant to handle large pieces
of data. There was
stackoverflow.com/questions/4833480/…
which shows that this can cause
problems.

I feel that doing this in browsers isn’t the best deal. Probably, I should explore backend based solutions.
Any ideas or suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T12:16:04+00:00Added an answer on May 20, 2026 at 12:16 pm

    Your looking for an online diff tool which takes n files containing a list of timestamps in some order including a extra data to be displayed in place but not parsed in the diffing.

    The file upload would involve

    <input id="upload" type="file">

    Along with snippets of javascript

    $("#upload").change(function(files) {
        var files = this.files;
        for (var i = 0; i < files.length; i++) {
            (function() {
                var file = files[i]; 
                var reader = new FileReader;
                reader.onload = function(e) {
                    var text = reader.result;
                    console.log(text);
                };
                reader.readAsText(file);
            }());
        }
    });
    

    See live example.

    So you have all the text you just need to work on a parser. I hope that helps a bit.

    As for the markup of the diff I would suggest something like:

    <table>
     <!-- one tr per unique timestamp -->
     <tr>
      <!-- one td/textarea per file -->
      <td> <textarea /> </td>
      <td> <textarea /> </td>
     </tr>
     ...
    </table>
    

    I would recommend making this a template and using a template engine to do some of the heavy lifting.

    Let’s say we want to use jquery-tmpl.

    Here’s an example to get you started. (I spend zero time on making it look good. That’s your job).

    All that’s left is generating JSON data to insert into the template.

    So given your file input you should have an array of fileTexts somewhere.

    We want to have some kind of deliminator to split it up into individual time stamp records. For simplicities sake let’s say that the new line character would work.

    var fileTexts = [file];
    var regex = new RegExp("(timestampformat)(.*)");
    
    for (var i = 0; i < fileTexts.length; i++) {
        var text = fileTexts[i];
        var records = text.split("\n");
        for (var j = 0; j < records.length; j++) {
            var match = regex.exec(records[j]);
            addToTimestamps(match[1], match[2], i);
        }
    }
    
    function addToTimestamps(timestamp, text, currFileCount) {
        console.log(arguments);
        // implement it.
    }
    

    As per example.

    These are the basic building blocks. Get the data from the File API. Manipulate the data into a normalised data format then use some kind of rendering tool on the data format.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.