[Geoserver-users] [GeoServer-users] WMS statistics/history

Hi Ammar,

It depends what you’re using by way of the servlet container (i.e. Jetty, Tomcat etc.), and what the logging level is at. GeoServer itself doesn’t keep that sort of logs.

User logging may happen at that level (although it typically requires going through the servlet security component, which I don’t think GeoServer does by standard).

I’m (slowly) working on a log-viewer tool for OGC services including WMS, which I’ll open source at some point. It’s designed for viewing aggregated data (how many people looked at which layer; what clients are used, what layers get queries most, etc.), rather than a specific user. If you’re interested, get back to me and I’ll point you to the prototype.

Alternately if you’re looking for a specific user, you’re best looking in the logs manually.

Cheers,

Jonathan

···

From: Ammar [mailto:ammar83_h@…54…]
Sent: Friday, October 03, 2014 11:34 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] WMS statistics/history

Hello all,

Is it possible to know which WMS service has been accessed and by which user in GeoServer? I have GeoServer 2.4.1 installed on Windows Server 2008.

Best regards,

Ammar

This message has been scanned for viruses by MailControl, a service from BlackSpider Technology

Click here to report this email as spam.

On Fri, Oct 3, 2014 at 2:21 PM, Jonathan Moules <J.Moules@anonymised.com>
wrote:

Hi Ammar,

It depends what you’re using by way of the servlet container (i.e. Jetty,
Tomcat etc.), and what the logging level is at. GeoServer itself doesn’t
keep that sort of logs.

User logging may happen at that level (although it typically requires
going through the servlet security component, which I don’t think GeoServer
does by standard).

Hi Jonathan, you should have a look at the monitoring extension, and in
particular at the "audit mode", which
allows you to log to file whatever request comes in, along with the user

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------

Hi Andrea,

Thanks for the information, that’s interesting and not something I knew; I tried the monitoring extension quite a while ago but don’t recall an audit mode; in fact I’m sure it wasn’t as comprehensive in function last time I looked, but that was 2 years ago.

Unfortunately I don’t have a GeoServer install to play with any more, I don’t suppose you happen to have any sample logs to hand that you can send me so I could try parsing them in my logging thing (I see in the docs they’re XML! :-S )?

Thanks,

Jonathan

···

On Fri, Oct 3, 2014 at 2:21 PM, Jonathan Moules <J.Moules@…6706…> wrote:

Hi Ammar,

It depends what you’re using by way of the servlet container (i.e. Jetty, Tomcat etc.), and what the logging level is at. GeoServer itself doesn’t keep that sort of logs.

User logging may happen at that level (although it typically requires going through the servlet security component, which I don’t think GeoServer does by standard).

Hi Jonathan, you should have a look at the monitoring extension, and in particular at the “audit mode”, which

allows you to log to file whatever request comes in, along with the user

Cheers

Andrea

==

GeoServer Professional Services from the experts! Visit

http://goo.gl/NWWaa2 for more information.

==

Ing. Andrea Aime

@geowolf

Technical Lead

GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054 Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272

mob: +39 339 8844549

http://www.geo-solutions.it

http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.


This message has been scanned for viruses by MailControl, a service from BlackSpider Technology

Click here to report this email as spam.

On Fri, Oct 3, 2014 at 4:25 PM, Jonathan Moules <J.Moules@anonymised.com>
wrote:

Hi Andrea,

Thanks for the information, that’s interesting and not something I knew; I
tried the monitoring extension quite a while ago but don’t recall an audit
mode; in fact I’m sure it wasn’t as comprehensive in function last time I
looked, but that was 2 years ago.

Unfortunately I don’t have a GeoServer install to play with any more, I
don’t suppose you happen to have any sample logs to hand that you can send
me so I could try parsing them in my logging thing (I see in the docs
they’re XML! :-S )?

I don't have any handy, but the thing is driven by a Freemarker template,
so you can do XML, CSV, JSON, and pretty much whatever other text format
you want

Cheers
Andrea

--

GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------