**** This is a Next.js project ****
DISCLAIMER: THIS APP IS NOT READY FOR PRODUCTION
Vision Log lens helps you to quickly access insightful information about .log
files
At the momment this app only support CLF .log
files.
CLF stands for Common Log Format
and is a format used by web servers when generating server log files.
CLF format example:
177.71.128.21 - - [10/Jul/2018:22:21:28 +0200] "GET /intranet-analytics/ HTTP/1.1" 200 3574 "-" "Mozilla/5.0 (X11; U; Linux x86_64; fr-FR) AppleWebKit/534.7 (KHTML, like Gecko) Epiphany/2.30.6 Safari/534.7"
Find more info about CLF files here
First, install the dependencies
npm install
Then, run the development server:
npm run dev
- Open http://localhost:3000 with your browser
- Select a valid
.log
file and upload it using the web-ui - Check the loaded
.log
file - Click in upload a new
.log
file - Repeat from step 2
NOTE: The same command to run the development server will start the backend APIs. There are no additional steps.
It will return all .log
files under the folder ./public/logs
curl --location 'http://localhost:3000/api/log/list'
Allow users to upload .log
files to the folder ./public/logs
curl --location 'http://localhost:3000/api/log/upload' \
--form 'file=@"/path/to/file/log 1.log"'
Allow users to load files tha have been already upload to the folder ./public/logs
curl --location 'http://localhost:3000/api/log/load/?path=77c82833-c71d-4618-8710-288e0d02ac68_log-2.log'
Under the folder public/logs
you can find a file named 1_log.example
.
This is an example log file. In order to use it, rename it to: 1-mylog.log
Then if you refresh the web-ui, you will be able to see it in the list of available logs.
Alternatively, you can also use this example .log
to upload using the app.
- [ ] Extract a few hardcoded information to
.env
variables - [ ] Finish some unit tests in different parts of the app
- [ ] Develop e2e tests using playwright or other alternatives
- [ ] Congfigure the production build and deployment to use a CI/CD pipeline