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

Custom format for multiple websites #86

Open
mascor opened this issue Jan 20, 2018 · 0 comments
Open

Custom format for multiple websites #86

mascor opened this issue Jan 20, 2018 · 0 comments

Comments

@mascor
Copy link

mascor commented Jan 20, 2018

Hi,
I'm trying to manage a nginx server with multiple website configurations, so I've different access log file for every website and I created a unique file with all the access requests to parse it with ngxtop.

Now I'm trying to create a custom format to show in ngxtop request_path field the full path of the request because, with default combined format, it shows only the relative path of the requested resource and I cannot understand for which website the request was made.

I tried this "brutal approach" creating this custom log_format:

log_format ngxtop_total '$http_referer - $remote_user [$time_local] '
'"$http_referer" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';

modifing all the entries with the $http_referer, that includes the full path, but ngxtop is not showing any more the request_path field.

I can I solve this problem?
Thanks
Bye

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

1 participant