Open madhurtandon opened 11 years ago
PR please.
Do you mean screen-shot
Pull Request
i have installed the with npm maptail install command.
Now as according to the readme file. I run the command maptail -f nohup.out
After this command what will be the next step.
Please fins the attached screenshot for reference : http://cl.ly/image/0i2k1m2h1v40%5C
Are you running something with nohup? It needs some output with some IP addresses in it to parse. Point it to a live log file that spits out IP addresses, see if dots appear, if not, there should be an error somewhere. What is the error?
Sorry for stupid kind of question, I am a newbee to it. I only ran the command you mention in README file i.e. maptail -f nohup.out
Do I need to create nohup.out file first (if yes then what should be in it) and then run this command Please help.
nohup.out is generated by the nohup utility usually used to keep an application running in the background between sessions. So if you run a server with it, all its output gets appended in that file automatically. Just point it to a running log file instead of nohup.out that contains IP addresses.
Thanks for the quick responses.
So you mean to say I should run:- maptail -f
Can I create a simple txt file with some ip address in it. And should I have to keep this file in bin folder or it can be kept anywhere.
A static txt file won't do anything. It needs a file that constantly appends new lines that contain ip addresses. Like a server log file. It can be anywhere. You can do: maptail -f your_file.log
or tail -f your_file.log | maptail
.
I Have created the empty log file in the bin folder, and then run the command maptail -f your_file.log command. but i find the same state of the map.
I also run the command :- maptail -f /Applications/XAMPP/logs/access_log.
The access_log file contains data given below :-
127.0.0.1 - - [18/Apr/2013:15:31:09 +0530] "GET / HTTP/1.1" 302 - 127.0.0.1 - - [18/Apr/2013:15:31:09 +0530] "GET /xampp/ HTTP/1.1" 200 590 127.0.0.1 - - [18/Apr/2013:15:31:09 +0530] "GET /xampp/head.php HTTP/1.1" 200 1363 127.0.0.1 - - [18/Apr/2013:15:31:09 +0530] "GET /xampp/navi.php HTTP/1.1" 200 2367 127.0.0.1 - - [18/Apr/2013:15:31:09 +0530] "GET /xampp/start.php HTTP/1.1" 200 813 127.0.0.1 - - [18/Apr/2013:16:04:09 +0530] "GET / HTTP/1.1" 302 - 127.0.0.1 - - [18/Apr/2013:16:04:09 +0530] "GET /xampp/ HTTP/1.1" 200 590 127.0.0.1 - - [18/Apr/2013:16:04:09 +0530] "GET /xampp/head.php HTTP/1.1" 200 1363 127.0.0.1 - - [18/Apr/2013:16:04:09 +0530] "GET /xampp/navi.php HTTP/1.1" 200 2367 127.0.0.1 - - [18/Apr/2013:16:04:09 +0530] "GET /xampp/start.php HTTP/1.1" 200 813 127.0.0.1 - - [18/Apr/2013:16:09:01 +0530] "GET / HTTP/1.1" 302 - 127.0.0.1 - - [18/Apr/2013:16:09:01 +0530] "GET /xampp/ HTTP/1.1" 200 590 127.0.0.1 - - [18/Apr/2013:16:09:01 +0530] "GET /xampp/head.php HTTP/1.1" 200 1363 127.0.0.1 - - [18/Apr/2013:16:09:01 +0530] "GET /xampp/navi.php HTTP/1.1" 200 2367 127.0.0.1 - - [18/Apr/2013:16:09:01 +0530] "GET /xampp/start.php HTTP/1.1" 200 813 127.0.0.1 - - [18/Apr/2013:16:09:08 +0530] "GET / HTTP/1.1" 302 - 127.0.0.1 - - [18/Apr/2013:16:09:08 +0530] "GET /xampp/ HTTP/1.1" 200 590 127.0.0.1 - - [18/Apr/2013:16:09:08 +0530] "GET /xampp/head.php HTTP/1.1" 200 1363 127.0.0.1 - - [18/Apr/2013:16:09:08 +0530] "GET /xampp/start.php HTTP/1.1" 200 813 127.0.0.1 - - [18/Apr/2013:16:09:08 +0530] "GET /xampp/navi.php HTTP/1.1" 200 2367
But still don't see the map with no dots on it.
Am I wrong some where.
Thanks
It needs real ip addresses, ones that can be traced back to their geographic location. 127.0.0.1 is ignored.
Did you try running the examples and see if they show dots?
ok so you mean to say I should run the command :- maptail -f ../examples / extreme-traffic.js
If no then can you please guide me to run this example.
Thanks
node examples/extreme-traffic.js
should do it
Thanks a lot for your help... It Works
But we are getting this error
http://cl.ly/image/2Z1O1W0j2W41
http://cl.ly/image/3J0O1U223x47
At line number 143
No idea. Works here.
After running this command on terminal : $ maptail -f nohup.out it shows only map but no dots are visible on map.