stagas / maptail

maptail is a realtime map view of GeoIP data
MIT License
798 stars 123 forks source link

no dots are visible on map #16

Open madhurtandon opened 11 years ago

madhurtandon commented 11 years ago

After running this command on terminal : $ maptail -f nohup.out it shows only map but no dots are visible on map.

stagas commented 11 years ago

PR please.

madhurtandon commented 11 years ago

Do you mean screen-shot

stagas commented 11 years ago

Pull Request

madhurtandon commented 11 years ago

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

stagas commented 11 years ago

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?

madhurtandon commented 11 years ago

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.

stagas commented 11 years ago

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.

madhurtandon commented 11 years ago

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.

stagas commented 11 years ago

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.

madhurtandon commented 11 years ago

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.

madhurtandon commented 11 years ago

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

stagas commented 11 years ago

It needs real ip addresses, ones that can be traced back to their geographic location. 127.0.0.1 is ignored.

stagas commented 11 years ago

Did you try running the examples and see if they show dots?

madhurtandon commented 11 years ago

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

stagas commented 11 years ago

node examples/extreme-traffic.js should do it

madhurtandon commented 11 years ago

Thanks a lot for your help... It Works

madhurtandon commented 11 years ago

But we are getting this error

http://cl.ly/image/2Z1O1W0j2W41

http://cl.ly/image/3J0O1U223x47

At line number 143

stagas commented 11 years ago

No idea. Works here.