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

Multiple nginx logs #5106

Open
Daniel15 opened this Issue Jan 3, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Daniel15
Copy link

Daniel15 commented Jan 3, 2019

Question summary

I have Nginx configured to create one log file per hostname:

access_log /var/log/nginx/access.$server_name.log;

Is it possible for netdata to automatically create a graph per host (eg. by using /var/log/nginx/access.*.log wildcard), or do I need to manually configure each one individually in /etc/netdata/python.d/web_log.conf?

Furthermore, can I combine multiple log files into a single graph (eg. /var/log/nginx/access.www.example.com.log and /var/log/nginx/access.example.com.log)?

OS / Environment

Debian buster, Nginx 1.14.1

Component Name

web_log

@ilyam8

This comment has been minimized.

Copy link
Member

ilyam8 commented Jan 3, 2019

Hi @Daniel15

Is it possible for netdata to automatically create a graph per host

No, it's not possible.

Yes, you need to configure each one individually. I suggest to write a script that parses log dir and creates web_log jobs, this is very easy to do.

Furthermore, can I combine multiple log files into a single graph

No.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment