# go.web\_log aggregates the metrics ? How can I monitor a web\_log by Web site?

**URL:** <https://community.netdata.cloud/t/go-web-log-aggregates-the-metrics-how-can-i-monitor-a-web-log-by-web-site/4803>\
**Category:** Help\
**Created:** [October 27, 2023, 9:07am UTC](https://community.netdata.cloud/t/go-web-log-aggregates-the-metrics-how-can-i-monitor-a-web-log-by-web-site/4803 "2023-10-27T09:07:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerardnico](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/gerardnico/32/3244_2.png) [@gerardnico](https://community.netdata.cloud/u/gerardnico)\
**Post date:** [October 27, 2023, 9:07am UTC](https://community.netdata.cloud/t/go-web-log-aggregates-the-metrics-how-can-i-monitor-a-web-log-by-web-site/4803/1 "2023-10-27T09:07:25Z")

</div>

## Problem/Question

I want to monitor the web\_log by website.

In the local dashboard, I can’t see the web\_log counter by log file.  
I see only one node called `Web Server Logs`

## Relevant docs you followed/actions you took to solve the issue

I have changed the web\_log.conf file  
after following this [page](https://learn.netdata.cloud/docs/data-collection/web-servers-and-web-proxies/web-server-log-files)

The content is:

```auto
jobs:
  - name: nginx
    path: /var/log/nginx/access.log
  - name: datacadamia
    path: /var/log/nginx//datacadamia.com/https-access.log

```

I can see that the log file are read thanks to a debug output:

```auto
[DEBUG] web_log[nginx] init.go:105 starting log reader creating
[DEBUG] web_log[nginx] reader.go:73 open log file: /var/log/nginx/access.log
[DEBUG] web_log[nginx] init.go:110 created log reader, current file '/var/log/nginx/access.log'
[DEBUG] web_log[nginx] init.go:116 starting parser creating
..............
[DEBUG] web_log[datacadamia] reader.go:73 open log file: /var/log/nginx/datacadamia.com/https-access.log
[DEBUG] web_log[datacadamia] init.go:110 created log reader, current file '/var/log/nginx/datacadamia.com/https-access.log'
[DEBUG] web_log[datacadamia] init.go:116 starting parser creating

```

## Environment/Browser/Agent’s version etc

```auto
bash-4.2$ netdata -v
netdata v1.42.3

```

## What I expected to happen

I would expect to see 2 nodes in the outline of the local dashboard:

- one for nginx
- one for the website: datacadamia

## Configuration is not complete

In the [file](https://github.com/netdata/go.d.plugin/blob/master/config/go.d/web_log.conf), they send me to this file for all possible configuration  
[https://github.com/netdata/go.d.plugin/tree/master/modules/web\_log](https://github.com/netdata/go.d.plugin/tree/master/modules/web_log)  
but it does not exist.  
So I don’t know if it can be solved by a configuration.

---

<div class="post-metadata">

**Author:** ![Luis\_Johnstone](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/luis_johnstone/32/151_2.png) [@Luis\_Johnstone](https://community.netdata.cloud/u/Luis_Johnstone)\
**Post date:** [October 27, 2023, 1:55pm UTC](https://community.netdata.cloud/t/go-web-log-aggregates-the-metrics-how-can-i-monitor-a-web-log-by-web-site/4803/2 "2023-10-27T13:55:49Z")

</div>

You should see a single ‘node’ named “Web Server Logs”.  
Each chart under that is a consolidated view of all the data the netdata agent has for that metric.  
Check it out in the Netdata demo environment:

> **[Netdata: Monitoring and troubleshooting transformed.](https://app.netdata.cloud/spaces/netdata-demo)**
>
> Slash your time to detect, troubleshoot and resolve infrastructure performance anomalies. Netdata: architected for speed, automated for easy.

Does that match up with what you see?  
Note that many charts are composites where you can use the filters to drill down to see specific hosts or instances of a collector.  
For example, you may want to select the Group by Instance drop down above one of the weblog charts and chose only the checkbox for “web server (instance)”

N.B. That URL looks to have gotten renamed to remove the underscore:

> <https://github.com/netdata/go.d.plugin/tree/master/modules/weblog>
>
> //github.com/netdata/go.d.plugin/tree/master/modules/weblog

---

<div class="post-metadata">

**Author:** ![gerardnico](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/gerardnico/32/3244_2.png) [@gerardnico](https://community.netdata.cloud/u/gerardnico)\
**Post date:** [October 27, 2023, 4:51pm UTC](https://community.netdata.cloud/t/go-web-log-aggregates-the-metrics-how-can-i-monitor-a-web-log-by-web-site/4803/3 "2023-10-27T16:51:26Z")

</div>

Yes it matches with what I see.

I just discover that you can choose by graph the log file (called web server).

I was hoping to be able to filter all chart at once by website app.

Thanks.

---

<div class="post-metadata">

**Author:** ![Luis\_Johnstone](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/luis_johnstone/32/151_2.png) [@Luis\_Johnstone](https://community.netdata.cloud/u/Luis_Johnstone)\
**Post date:** [October 28, 2023, 6:20pm UTC](https://community.netdata.cloud/t/go-web-log-aggregates-the-metrics-how-can-i-monitor-a-web-log-by-web-site/4803/4 "2023-10-28T18:20:14Z")

</div>

Hi @gerardnico

I take you to mean that, in your example, the following are actually two logs for the same web-application?

```auto
jobs:
  - name: nginx
    path: /var/log/nginx/access.log
  - name: datacadamia
    path: /var/log/nginx/datacadamia.com/https-access.log

```

If this is so…

First off, the very simplest thing would be to simply use two filters:

```auto
Group by -> Dimension
Labels -> _collect_job <select both of your jobs: nginx, datacadamia>

```

  

As an aside, I had a play and you can actually specify a web\_log job multiple times with the same name but different path\_values. However, IMO the filtering above gives a better result: that’s because the suggested filtering allows you to select and de-select jobs using the labels filter, while still being able to group by something else- for example if your web app is distributed on many servers then it would allow you to group be node etc and then by job.
