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

Multiple nginx logs #5106

Closed
Daniel15 opened this issue Jan 3, 2019 · 2 comments
Closed

Multiple nginx logs #5106

Daniel15 opened this issue Jan 3, 2019 · 2 comments
Labels

Comments

@Daniel15
Copy link
Contributor

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
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.

@stale
Copy link

stale bot commented Feb 17, 2019

Currently netdata team doesn't have enough capacity to work on this issue. We will be more than glad to accept a pull request with a solution to problem described here. This issue will be closed after another 60 days of inactivity.

@stale stale bot added the stale label Feb 17, 2019
@ilyam8 ilyam8 closed this as completed Apr 11, 2019
@ilyam8 ilyam8 added collectors/python.d area/collectors Everything related to data collection and removed area/external/python labels Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants