{"thread":{"id":"19362","subject":"git daemon request logging?","startedAt":"2009-05-15T19:39:12Z","lastAt":"2009-05-15T22:22:07Z","messageCount":5,"participants":["Jeff Garzik","Alex Riesen","Junio C Hamano","Robin H. Johnson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"114026","messageId":"4A0DC4E0.7020001@garzik.org","threadId":"19362","inReplyTo":null,"subject":"git daemon request logging?","fromName":"Jeff Garzik","fromEmail":"jeff@garzik.org","sentAt":"2009-05-15T19:39:12Z","receivedAt":"2009-05-15T19:39:12Z","isPatch":false,"sender":{"key":"jeff@garzik.org","avatar":null},"body":"Does the git daemon do any sort of request logging?  Could it?\n\nI was thinking it would be nice to see the amount of pulls/clones for \neach git.kernel.org repository.\n\n\tJeff\n"},{"id":"114033","messageId":"81b0412b0905151356t7bf613d5me39af08d37f72857@mail.gmail.com","threadId":"19362","inReplyTo":"4A0DC4E0.7020001@garzik.org","subject":"Re: git daemon request logging?","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2009-05-15T20:56:07Z","receivedAt":"2009-05-15T20:56:07Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"2009/5/15 Jeff Garzik <jeff@garzik.org>:\n> Does the git daemon do any sort of request logging?  Could it?\n>\n> I was thinking it would be nice to see the amount of pulls/clones for each\n> git.kernel.org repository.\n\nDoes this count?\n\nMay 15 22:54:47 tigra git[28923]: connect from 192.168.0.8 (192.168.0.8)\nMay 15 22:54:47 tigra git-daemon[28924]: Connection from 192.168.0.8:40845\nMay 15 22:54:47 tigra git-daemon[28924]: Extended attributes (11\nbytes) exist <host=gate>\nMay 15 22:54:47 tigra git-daemon[28924]: Request upload-pack for '~raa/src/git'\n\nfetch(pull)/clone are the same for daemon.\n"},{"id":"114034","messageId":"4A0DD81C.2000709@garzik.org","threadId":"19362","inReplyTo":"81b0412b0905151356t7bf613d5me39af08d37f72857@mail.gmail.com","subject":"Re: git daemon request logging?","fromName":"Jeff Garzik","fromEmail":"jeff@garzik.org","sentAt":"2009-05-15T21:01:16Z","receivedAt":"2009-05-15T21:01:16Z","isPatch":false,"sender":{"key":"jeff@garzik.org","avatar":null},"body":"Alex Riesen wrote:\n> 2009/5/15 Jeff Garzik <jeff@garzik.org>:\n>> Does the git daemon do any sort of request logging?  Could it?\n>>\n>> I was thinking it would be nice to see the amount of pulls/clones for each\n>> git.kernel.org repository.\n> \n> Does this count?\n> \n> May 15 22:54:47 tigra git[28923]: connect from 192.168.0.8 (192.168.0.8)\n> May 15 22:54:47 tigra git-daemon[28924]: Connection from 192.168.0.8:40845\n> May 15 22:54:47 tigra git-daemon[28924]: Extended attributes (11\n> bytes) exist <host=gate>\n> May 15 22:54:47 tigra git-daemon[28924]: Request upload-pack for '~raa/src/git'\n> \n> fetch(pull)/clone are the same for daemon.\n\nHonestly I was hoping for something more along the lines of httpd \none-line request logging, as the above is a lot of data to log + parse.\n\n\tJeff\n"},{"id":"114041","messageId":"7vhbzmrptl.fsf@alter.siamese.dyndns.org","threadId":"19362","inReplyTo":"4A0DD81C.2000709@garzik.org","subject":"Re: git daemon request logging?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-05-15T21:58:30Z","receivedAt":"2009-05-15T21:58:30Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jeff Garzik <jeff@garzik.org> writes:\n\n> Alex Riesen wrote:\n>> 2009/5/15 Jeff Garzik <jeff@garzik.org>:\n>>> Does the git daemon do any sort of request logging?  Could it?\n>>>\n>>> I was thinking it would be nice to see the amount of pulls/clones for each\n>>> git.kernel.org repository.\n>>\n>> Does this count?\n>>\n>> May 15 22:54:47 tigra git[28923]: connect from 192.168.0.8 (192.168.0.8)\n>> May 15 22:54:47 tigra git-daemon[28924]: Connection from 192.168.0.8:40845\n>> May 15 22:54:47 tigra git-daemon[28924]: Extended attributes (11\n>> bytes) exist <host=gate>\n>> May 15 22:54:47 tigra git-daemon[28924]: Request upload-pack for '~raa/src/git'\n>>\n>> fetch(pull)/clone are the same for daemon.\n>\n> Honestly I was hoping for something more along the lines of httpd\n> one-line request logging, as the above is a lot of data to log +\n> parse.\n\nI think there was a proposed patch to change the log format to one-line;\nit was unfortunately an unilateral \"we give no option to produce the old\nstyle logs, screw people's existing log analysis scripts\" patch, and I do\nnot think I applied it.\n"},{"id":"114044","messageId":"20090515222207.GA9483@curie-int","threadId":"19362","inReplyTo":"4A0DC4E0.7020001@garzik.org","subject":"Re: git daemon request logging?","fromName":"Robin H. Johnson","fromEmail":"robbat2@gentoo.org","sentAt":"2009-05-15T22:22:07Z","receivedAt":"2009-05-15T22:22:07Z","isPatch":false,"sender":{"key":"robbat2@gentoo.org","avatar":"https://avatars.githubusercontent.com/u/373898?v=4"},"body":"On Fri, May 15, 2009 at 03:39:12PM -0400, Jeff Garzik wrote:\n> Does the git daemon do any sort of request logging?  Could it?\nYou could probably get it easily from my upcoming selective-deny of\npull/clone patch.\n\nI described my plans here:\nhttp://thread.gmane.org/gmane.comp.version-control.git/115600/focus=116588\n\nHopefully I'll have a patch out sometime next week.\n\n-- \nRobin Hugh Johnson\nGentoo Linux Developer & Infra Guy\nE-Mail     : robbat2@gentoo.org\nGnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85\n"}]}