{"id":23151232,"url":"https://github.com/samsoft00/web-server-access-log-parser","last_synced_at":"2025-04-04T15:15:01.423Z","repository":{"id":72746269,"uuid":"106228988","full_name":"samsoft00/Web-Server-Access-Log-Parser","owner":"samsoft00","description":"The goal is to write a parser in Java that parses web server access log file, loads the log to MySQL and checks if a given IP makes more than a certain number of requests for the given duration. ","archived":false,"fork":false,"pushed_at":"2017-11-01T12:40:40.000Z","size":3158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T00:44:30.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samsoft00.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-09T02:43:52.000Z","updated_at":"2017-11-01T12:28:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e0cabba-7820-48b0-a12e-f62552eda6a1","html_url":"https://github.com/samsoft00/Web-Server-Access-Log-Parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2FWeb-Server-Access-Log-Parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2FWeb-Server-Access-Log-Parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2FWeb-Server-Access-Log-Parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2FWeb-Server-Access-Log-Parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samsoft00","download_url":"https://codeload.github.com/samsoft00/Web-Server-Access-Log-Parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198466,"owners_count":20900081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T18:31:31.049Z","updated_at":"2025-04-04T15:15:01.407Z","avatar_url":"https://github.com/samsoft00.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web-Server-Access-Log-Parser\nThe goal is to write a parser in Java that parses web server access log file, loads the log to MySQL and checks if a given IP makes more than a certain number of requests for the given duration. \n\u003ch3\u003eSolution\u003c/h3\u003e\n\u003cimg src=\"https://github.com/samsoft00/Web-Server-Access-Log-Parser/blob/master/Parser/cmd_example.png\" alt=\"Web Server Access Log Parser\"\u003e\n==========================================================\n\u003cp\u003eDeveloper: Oyewole Abayomi Samuel.\u003cbr/\u003e\nPosition: Senior Java Developer.\u003cbr/\u003e\nCountry: Nigeria.\u003cbr/\u003e\nSkype: oyewoleabayomi@gmail.com\u003cbr/\u003e\nDate: 2017-05-10\u003c/p\u003e\n---------------------------------\nDeliverables\n---------------------------------\n\n\u003ch4\u003e(1) Java program that can be run from command line\u003c/h4\u003e\n\u003ch3\u003eHOW TO RUN JAVA PROGRAM FROM CMD - USER MANUAL\u003c/h3\u003e\n==================================================\n\n\u003cp\u003e1. Extract the .jar file into a directory e.g Desktop/Download directory\u003cbr/\u003e\n2. Launch MYSQL client using Xampp OR Wampp, ensure MYSQL is on runing port - 3306\u003cbr/\u003e\n3. Create Database using this SQL below (See full information below)\u003cbr/\u003e\n   CREATE DATABASE weblogs;\u003cbr/\u003e\n4. Next, open your favorite command line, cd into directory where you have parser.jar and run the following command.\u003cbr/\u003e\n   java -cp \"parser.jar\" com.ef.Parser --accesslog=\"/path/to/file\" --startDate=2017-01-01.13:05:00 --duration=hourly --threshold=100\u003cbr/\u003e\n   \nPlease note that the default MYSQL credential is\u003cbr/\u003e\nMYSQL Username: 'root'\u003cbr/\u003e\nMYSQL Password: ''\u003cbr/\u003e\n\u003c/P\u003e\n\u003cp\u003eYou can config your MYSQL client to use above credentials or run the program to dynamically by including MYSQL credentials at run time like this\u003cbr/\u003e\njava -cp \"parser.jar\" com.ef.Parser --accesslog=\"/path/to/file\" --startDate=2017-01-01.13:05:00 --duration=hourly --threshold=100 --dbUser=root --dbPass=mysql\u003c/p\u003e\n\n\u003ca href=\"https://github.com/samsoft00/Web-Server-Access-Log-Parser/blob/master/Parser/readme.txt\"\u003eSee full Manual\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsoft00%2Fweb-server-access-log-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsoft00%2Fweb-server-access-log-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsoft00%2Fweb-server-access-log-parser/lists"}