- Notifications
You must be signed in to change notification settings - Fork125
Tail GeoIP data on a world map in realtime.
NotificationsYou must be signed in to change notification settings
stagas/maptail
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Tail GeoIP data on a world map in realtime.
npm i -g maptail
# pipe logs into maptailtail -f my-logs| maptail# open the UI at http://localhost:3000
--silent: suppress stdout output--logs: show logs on screen (default: true)--port <port>: port to listen on (default: env PORT or 3000)
You can embed maptail into an existing Node/Express HTTP server via a reusable middleware. It will intercept all writes to stdout (i.e from your logs) and serve the UI to the specified endpoint.
importexpressfrom'express'importmorganfrom'morgan'import{maptail}from'maptail'constapp=express()app.use(morgan('combined'))app.use(maptail('/maptail'))app.listen(3000,()=>{console.log('Server listening on http://localhost:3000')})
maptail uses the IP2Location LITE database forIP geolocation.
MIT
About
Tail GeoIP data on a world map in realtime.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
