/parse_server_logs

Parses NASA's server logs and output statistics

Primary LanguageCMIT LicenseMIT

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Project

Project parses NASA's logs. Every log is given in the format $remote_addr - - [$local_time] “$request” $status $bytes_send where

  • $remote_addr - source of a request
  • $local_time - time of the request
  • $request - request
  • $status - status
  • $bytes_send - number of bytes in the answer to the request

Ex.: 198.112.92.15 - - [03/Jul/1995:10:50:02 -0400] "GET /shuttle/countdown/HTTP/1.0" 200 3985

The program will

  • output the number of logs with status 5xx and the list of such logs
  • for the given time interval in seconds find maximum number of requests to the server

Getting Started

Clone the repo with git clone https://github.com/MariaMozgunova/parse_server_logs.git

Usage

To run the program type process_logs.exe <time_interval_in_seconds> <path_to_logs_file> in the terminal

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Maria Mozgunova - @mariamozgunova - maria.mozgunova@inbox.ru

Project Link: https://github.com/MariaMozgunova/parse_server_logs

(back to top)