Hi, I am currently collecting apache access logs using the logstash
centralized setup and all the logs are being collected properly. I want
trying to display the last 2min visitors (something similar to SPLUNK Google
Map of VisitorsLink:http://docs.splunk.com/Documentation/WebIntel/latest/User/BMgooglemapofvisitors
)
I want to get a list of sourceip address from the apache logs and look up
using the geoip database and show it onto the google maps, but my problem
is there are multiple log entries like below and having trouble extracting
just source ip address
Q. Is there a way in elasticsearch to apply "UNIQUE" or "DISTINCT" filters
to give just the unique source ip's for that time period.of 2 min?
2012-04-30T04:23:07.000Z
60.0.0.181 - - [30/Apr/2012:14:23:07 +1000] "POST
/posttoserver.php?x=0.5323159941472113 HTTP/1.1" 200 10
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.0; Trident/5.0)"
2012-04-30T04:23:07.000Z
60.0.0.181 - - [30/Apr/2012:14:23:07 +1000] "POST
/posttoserver.php?x=0.7869502729736269 HTTP/1.1" 200 10
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.0; Trident/5.0)"
2012-04-30T04:23:26.000Z
124.0.0.83 - - [30/Apr/2012:14:23:26 +1000] "POST
/posttoserver.php?x=0.48628548765555024 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (Macintosh; Intel
Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6
Safari/533.22.3"
2012-04-30T04:23:26.000Z
124.0.0.83 - - [30/Apr/2012:14:23:26 +1000] "POST
/posttoserver.php?x=0.808886235114187 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (Macintosh; Intel
Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6
Safari/533.22.3"
2012-04-30T04:23:28.000Z
110.0.0.196 - - [30/Apr/2012:14:23:28 +1000] "POST
/posttoserver.php?x=0.33912599040195346 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.1; WOW64; Trident/5.0)"
2012-04-30T04:23:28.000Z
110.0.0.196 - - [30/Apr/2012:14:23:28 +1000] "POST
/posttoserver.php?x=0.5306816347874701 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.1; WOW64; Trident/5.0)"
2012-04-30T04:23:31.000Z
110.0.0.196 - - [30/Apr/2012:14:23:31 +1000] "POST
/posttoserver.php?x=0.8703127126209438 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.1; WOW64; Trident/5.0)"
2012-04-30T04:23:31.000Z
124.0.0.83 - - [30/Apr/2012:14:23:31 +1000] "POST
/posttoserver.php?x=0.7754105641506612 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (Macintosh; Intel
Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6
Safari/533.22.3"
2012-04-30T04:23:31.000Z
110.0.0.196 - - [30/Apr/2012:14:23:31 +1000] "POST
/posttoserver.php?x=0.8894465500488877 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.1; WOW64; Trident/5.0)"
2012-04-30T04:23:31.000Z
124.0.0.83 - - [30/Apr/2012:14:23:31 +1000] "POST
/posttoserver.php?x=0.6088048042729497 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (Macintosh; Intel
Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6
Safari/533.22.3"
2012-04-30T04:23:33.000Z
110.0.0.196 - - [30/Apr/2012:14:23:33 +1000] "POST
/posttoserver.php?x=0.2770046340301633 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.1; WOW64; Trident/5.0)"
2012-04-30T04:23:33.000Z
110.0.0.196 - - [30/Apr/2012:14:23:33 +1000] "POST
/posttoserver.php?x=0.08373264269903302 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (compatible; MSIE
9.0; Windows NT 6.1; WOW64; Trident/5.0)"
2012-04-30T04:23:35.000Z
124.0.0.83 - - [30/Apr/2012:14:23:35 +1000] "POST
/posttoserver.php?x=0.673358547501266 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (Macintosh; Intel
Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6
Safari/533.22.3"
2012-04-30T04:23:35.000Z
124.0.0.83 - - [30/Apr/2012:14:23:35 +1000] "POST
/posttoserver.php?x=0.7178014349192381 HTTP/1.1" 200 11
"http://mywebserver/folder/test.swf?v=10" "Mozilla/5.0 (Macintosh; Intel
Mac OS X 10_5_8) AppleWebKit/534.50.2 (KHTML, like Gecko) Version/5.0.6
Safari/533.22.3"
Thanks