Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Log response code #10

Open
jnovack opened this issue Aug 3, 2014 · 1 comment
Open

Feature Request: Log response code #10

jnovack opened this issue Aug 3, 2014 · 1 comment

Comments

@jnovack
Copy link

jnovack commented Aug 3, 2014

The mod_statsd project for Apache provides very detailed statistics by logging every hit and it's response code.

By default, they have them by individual page types, but I roll up to the top level domain to get the following entries, which I find extremely useful.

www_hostname_com.GET.200.count
www_hostname_com.GET.403.count
www_hostname_com.GET.404.count
www_hostname_com.POST.200.count

Is it possible to duplicate this functionality?

@hamaxx
Copy link

hamaxx commented Sep 17, 2014

You can do something like that:

statsd_count "$hostname.$request_method.$status.count" 1 ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants