git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git daemon request logging?
@ 2009-05-15 19:39 Jeff Garzik
  2009-05-15 20:56 ` Alex Riesen
  2009-05-15 22:22 ` Robin H. Johnson
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Garzik @ 2009-05-15 19:39 UTC (permalink / raw)
  To: Git Mailing List

Does the git daemon do any sort of request logging?  Could it?

I was thinking it would be nice to see the amount of pulls/clones for 
each git.kernel.org repository.

	Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git daemon request logging?
  2009-05-15 19:39 git daemon request logging? Jeff Garzik
@ 2009-05-15 20:56 ` Alex Riesen
  2009-05-15 21:01   ` Jeff Garzik
  2009-05-15 22:22 ` Robin H. Johnson
  1 sibling, 1 reply; 5+ messages in thread
From: Alex Riesen @ 2009-05-15 20:56 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Git Mailing List

2009/5/15 Jeff Garzik <jeff@garzik.org>:
> Does the git daemon do any sort of request logging?  Could it?
>
> I was thinking it would be nice to see the amount of pulls/clones for each
> git.kernel.org repository.

Does this count?

May 15 22:54:47 tigra git[28923]: connect from 192.168.0.8 (192.168.0.8)
May 15 22:54:47 tigra git-daemon[28924]: Connection from 192.168.0.8:40845
May 15 22:54:47 tigra git-daemon[28924]: Extended attributes (11
bytes) exist <host=gate>
May 15 22:54:47 tigra git-daemon[28924]: Request upload-pack for '~raa/src/git'

fetch(pull)/clone are the same for daemon.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git daemon request logging?
  2009-05-15 20:56 ` Alex Riesen
@ 2009-05-15 21:01   ` Jeff Garzik
  2009-05-15 21:58     ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Garzik @ 2009-05-15 21:01 UTC (permalink / raw)
  To: Alex Riesen; +Cc: Git Mailing List

Alex Riesen wrote:
> 2009/5/15 Jeff Garzik <jeff@garzik.org>:
>> Does the git daemon do any sort of request logging?  Could it?
>>
>> I was thinking it would be nice to see the amount of pulls/clones for each
>> git.kernel.org repository.
> 
> Does this count?
> 
> May 15 22:54:47 tigra git[28923]: connect from 192.168.0.8 (192.168.0.8)
> May 15 22:54:47 tigra git-daemon[28924]: Connection from 192.168.0.8:40845
> May 15 22:54:47 tigra git-daemon[28924]: Extended attributes (11
> bytes) exist <host=gate>
> May 15 22:54:47 tigra git-daemon[28924]: Request upload-pack for '~raa/src/git'
> 
> fetch(pull)/clone are the same for daemon.

Honestly I was hoping for something more along the lines of httpd 
one-line request logging, as the above is a lot of data to log + parse.

	Jeff

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git daemon request logging?
  2009-05-15 21:01   ` Jeff Garzik
@ 2009-05-15 21:58     ` Junio C Hamano
  0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2009-05-15 21:58 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Alex Riesen, Git Mailing List

Jeff Garzik <jeff@garzik.org> writes:

> Alex Riesen wrote:
>> 2009/5/15 Jeff Garzik <jeff@garzik.org>:
>>> Does the git daemon do any sort of request logging?  Could it?
>>>
>>> I was thinking it would be nice to see the amount of pulls/clones for each
>>> git.kernel.org repository.
>>
>> Does this count?
>>
>> May 15 22:54:47 tigra git[28923]: connect from 192.168.0.8 (192.168.0.8)
>> May 15 22:54:47 tigra git-daemon[28924]: Connection from 192.168.0.8:40845
>> May 15 22:54:47 tigra git-daemon[28924]: Extended attributes (11
>> bytes) exist <host=gate>
>> May 15 22:54:47 tigra git-daemon[28924]: Request upload-pack for '~raa/src/git'
>>
>> fetch(pull)/clone are the same for daemon.
>
> Honestly I was hoping for something more along the lines of httpd
> one-line request logging, as the above is a lot of data to log +
> parse.

I think there was a proposed patch to change the log format to one-line;
it was unfortunately an unilateral "we give no option to produce the old
style logs, screw people's existing log analysis scripts" patch, and I do
not think I applied it.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git daemon request logging?
  2009-05-15 19:39 git daemon request logging? Jeff Garzik
  2009-05-15 20:56 ` Alex Riesen
@ 2009-05-15 22:22 ` Robin H. Johnson
  1 sibling, 0 replies; 5+ messages in thread
From: Robin H. Johnson @ 2009-05-15 22:22 UTC (permalink / raw)
  To: Jeff Garzik, Git Mailing List

[-- Attachment #1: Type: text/plain, Size: 538 bytes --]

On Fri, May 15, 2009 at 03:39:12PM -0400, Jeff Garzik wrote:
> Does the git daemon do any sort of request logging?  Could it?
You could probably get it easily from my upcoming selective-deny of
pull/clone patch.

I described my plans here:
http://thread.gmane.org/gmane.comp.version-control.git/115600/focus=116588

Hopefully I'll have a patch out sometime next week.

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 330 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-15 22:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 19:39 git daemon request logging? Jeff Garzik
2009-05-15 20:56 ` Alex Riesen
2009-05-15 21:01   ` Jeff Garzik
2009-05-15 21:58     ` Junio C Hamano
2009-05-15 22:22 ` Robin H. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).