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

Nginx LTSV logs #1

Merged
merged 3 commits into from Oct 20, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+22 −3
Diff settings

Always

Just for now

Copy path View file
@@ -11,5 +11,5 @@ ansible-playbook -u isucon -c paramiko -kKs -i hosts site.yml
*without password*

```
ansible-playbook -u isucon -c paramiko -i hosts site.yml
ansible-playbook -u isucon -c paramiko -s -i hosts site.yml
```
Copy path View file
@@ -4,6 +4,7 @@ services:
image: nginx:1.15.3-alpine
volumes:
- ./nginx:/etc/nginx
- ./log:/log
ports:
- "443:443"
links:
Copy path View file
No changes.
Copy path View file
@@ -3,9 +3,27 @@ events {
}

http {
log_format ltsv "time:$time_local"
"\thost:$remote_addr"
"\tforwardedfor:$http_x_forwarded_for"
"\treq:$request"
"\tstatus:$status"
"\tmethod:$request_method"
"\turi:$request_uri"
"\tsize:$body_bytes_sent"
"\treferer:$http_referer"
"\tua:$http_user_agent"
"\treqtime:$request_time"
"\tcache:$upstream_http_x_cache"
"\truntime:$upstream_http_x_runtime"
"\tapptime:$upstream_response_time"
"\tvhost:$host";

default_type application/octet-stream;
error_log /dev/stdout error;
access_log /dev/stdout combined;
# error_log /dev/stdout error;
# access_log /dev/stdout ltsv;
access_log /log/access.ltsv.log ltsv;
error_log /log/error.log;

ssl_certificate /etc/nginx/_.isucon8.flying-chair.net.crt;
ssl_certificate_key /etc/nginx/_.isucon8.flying-chair.net.key;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.