Logger Parser Test
Create a log parser that can:
- Read an access log file
- Resolve Country and State from IP address (IE MaxMind GeoLite2 Free)
- Translate useragent to device type (Mobile, Desktop, Tablet) and Browser (Safari, Chrome, etc)
- Combine new Geo & Device fields with existing fields on access log file and output/export a CSV
- Docker
First of all consider that you need to have Docker installed in your machine. Also, you need to add the following host in your hosts
127.0.0.1 nearsoft.tst
- You might need to make some request to fill the nginx access.log to get some data to generate the CSV.
- You can find the results in app/storage/csv/«Ymd_His».csv
- Clone the repository
git clone git@github.com:zikeron/nearsoft-test.git
- Initialize the docker
docker-compose up
- In other terminal session run the command to enter the container
docker exec -it «name_container» bash
- Go to the following path
cd /var/www/nearsoft
- Run the following path
php artisan logger-parser
Alejandro Cortez @ziker_on
- 1.0.0
- Initial Release
This project is licensed under the MIT License - see the LICENSE file for details