To collect statistics using a proxy layer or awstst

Good day to you, community

Maybe someone faced with the task of collecting statistics about a user in a proxy layer or awsts
So what we have:

Klientka library (openLayers for mapping, but it doesn't matter), which sends requests of type
GET tiles/1/2/3/4.png to your GeoServer.

The task is to count how many people and what characteristics of the browser + where they came from(etc.)
While mind 2 ways to implement:

1. To hang between them a thread the stripped-down proxy(GET reads, analyzes, and forwards to another URL, getting the response gives the user), which would be gathered from the HTTP Headerов all the necessary data. Plus you can handle, hang and read realtime COOKIES at the header level. Negative — while very confusing for the stability of such solutions. As such, he will handle 10.000 simultaneous requests, given that he Perlе

2. To collect statistics from logs with awstst or webalizer. From obvious minuses — you can't give COOKIES to track movements on the site. A kind of READ-ONLY statistics.

Was the experience one of such decisions?
October 8th 19 at 00:18
2 answers
October 8th 19 at 00:20
There is such a thing — Google Analytics, which many people use to gather statistics about the visitors than does not suit you?
October 8th 19 at 00:22
The fact that I'm going to request a particular content type of PNG images. As you know to insert them in Google Analytics not possible
And you need statistics in real-time?
Why not do just to maintain the log of requests with Headers, Cookies and other things, and then parse it offline.
To write a Perl proxy that will pull 10K simultaneous requests, with ustanovkoy cookies, parsing the headers and tydy, is not particularly big problem, but if little experience — the stability of this solution is questionable.
At the same time, the proxy just add the queries to a log (file or dB) is written is elementary and will work much faster and more stable. - Jewell49 commented on October 8th 19 at 00:25
Actually you're talking about item 2 — something like awstats. Consider it as a possible option, which inclined more and more. - Dewayne.Russel73 commented on October 8th 19 at 00:28

Find more questions by tags AnalystProxy