Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no dots are visible on map #16

Open
madhurtandon opened this issue Apr 18, 2013 · 18 comments
Open

no dots are visible on map #16

madhurtandon opened this issue Apr 18, 2013 · 18 comments

Comments

@madhurtandon
Copy link

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

@stagas
Copy link
Owner

stagas commented Apr 18, 2013

PR please.

@madhurtandon
Copy link
Author

Do you mean screen-shot

@stagas
Copy link
Owner

stagas commented Apr 18, 2013

Pull Request

@madhurtandon
Copy link
Author

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
Copy link
Owner

stagas commented Apr 18, 2013

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
Copy link
Author

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
Copy link
Owner

stagas commented Apr 18, 2013

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
Copy link
Author

Thanks for the quick responses.

So you mean to say I should run:- maptail -f <any_log_file>

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
Copy link
Owner

stagas commented Apr 18, 2013

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

stagas commented Apr 18, 2013

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

@stagas
Copy link
Owner

stagas commented Apr 18, 2013

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

@madhurtandon
Copy link
Author

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
Copy link
Owner

stagas commented Apr 18, 2013

node examples/extreme-traffic.js should do it

@madhurtandon
Copy link
Author

Thanks a lot for your help... It Works

@madhurtandon
Copy link
Author

But we are getting this error

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

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

At line number 143

@stagas
Copy link
Owner

stagas commented Apr 18, 2013

No idea. Works here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants