We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da9aec commit b663979Copy full SHA for b663979
README.md
@@ -81,6 +81,7 @@ What does the `GelfFields` string mean:
81
| C | Connection status |
82
| c | Extract Cookie |
83
| D | Request duration |
84
+| | (in microseconds) |
85
| f | Requested file |
86
| H | Protocol |
87
| h | Remote host |
@@ -121,9 +122,7 @@ Bundle module and configuration files to system package, e.g. for Ubuntu:
121
122
Install dependent c libraries:
123
124
```
- $ sudo apt-get install apache2-dev
125
- $ sudo apt-get install libjson-c-dev
126
- $ sudo apt-get install zlib1g-dev
+ $ sudo apt-get install apache2-dev libjson-c-dev zlib1g-dev
127
128
129
Compile and install modules:
src/functions20.h
@@ -85,7 +85,7 @@ static const char *extract_request_time(request_rec *r, char *a)
static const char *extract_request_duration(request_rec *r, char *a)
{
apr_time_t duration = apr_time_now() - r->request_time;
88
- return apr_psprintf(r->pool, "%.3lf", apr_time_usec(duration)/1000.0);
+ return apr_psprintf(r->pool, "%ld", apr_time_usec(duration));
89
}
90
91
static const char *extract_connection_status(request_rec *r, char *a) __attribute__((unused));
src/mod_log_gelf.c
@@ -389,7 +389,7 @@ static int log_gelf_post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *pte
389
log_gelf_register_item(server,p,'B', extract_bytes_sent, NULL, "_bytes_send");
390
log_gelf_register_item(server,p,'C', extract_connection_status, NULL, "_connection_status");
391
log_gelf_register_item(server,p,'c', extract_specific_cookie, config->cookie, "_cookie");
392
- log_gelf_register_item(server,p,'D', extract_request_duration, NULL, "_request_duration_ms");
+ log_gelf_register_item(server,p,'D', extract_request_duration, NULL, "_request_duration_us");
393
log_gelf_register_item(server,p,'f', extract_request_file, NULL, "_request_file");
394
log_gelf_register_item(server,p,'H', extract_request_protocol, NULL, "_request_protocol");
395
log_gelf_register_item(server,p,'h', extract_remote_host, NULL, "_remote_host");
0 commit comments