/LogParser

GNU General Public License v3.0GPL-3.0

Welcome to Log Parser! 👋

About

A log parser application with a backend built using Node.js and TypeScript that converts a log file in a specific format to a JSON file. The log file format includes a timestamp, log level, transaction ID, and log information. The frontend, built using React and Tailwind CSS, provides a UI for uploading the log file and downloading the parsed JSON file. The UI includes a button for uploading the file and an alert to show API error messages. The build tool used is Vite.

Run Locally

Clone the project

  git clone https://github.com/Aariv/LogParser.git

Go to the project directory

  cd LogParser

Navigate to client

  cd client

Install dependencies

  npm install

Run application

  npm run dev

Navigate to server

  cd server

Install dependencies

  npm install

Run application

  npm run dev

Start the server

  npm run start

Features or Limitations

  • Uploads a text file using API.
  • Download JSON file received from API response.

API Reference

Parse to json

  POST /api/logs/logParser/fileName
Parameter Type Description
body file Required file containing the text to be parsed