Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

weblog IIS #977

Merged
merged 15 commits into from
Nov 9, 2022
Merged
8 changes: 8 additions & 0 deletions config/go.d/web_log.conf
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,11 @@ jobs:

- name: gunicorn
path: /var/log/gunicorn/gunicorn-access.log

# IIS
# This configuration assumes you are running netdata on WSL
#- name: iis
# path: /mnt/c/inetpub/logs/LogFiles/W3SVC1/u_exYYMMDD.log
thiagoftsm marked this conversation as resolved.
Show resolved Hide resolved
# log_type: csv
# csv_config:
# format: '- - $host $request_method $request_uri - $server_port - $remote_add - - $status - - $request_time'
thiagoftsm marked this conversation as resolved.
Show resolved Hide resolved
14 changes: 11 additions & 3 deletions modules/weblog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: "Web server log (Apache, NGINX) monitoring with Netdata"
description: "Monitor the health and performance of Apache or Nginx logs with zero configuration, per-second metric granularity, and interactive visualizations."
custom_edit_url: https://github.com/netdata/go.d.plugin/edit/master/modules/weblog/README.md
sidebar_label: "Web server logs (Apache, NGINX)"
sidebar_label: "Web server logs (Apache, NGINX, Microsoft IIS)"
-->

# Web log (Apache, NGINX) monitoring with Netdata
# Web log (Apache, NGINX, IIS) monitoring with Netdata

This module parses [`Apache`](https://httpd.apache.org/) and [`NGINX`](https://nginx.org/en/) web servers logs.
This module parses [`Apache`](https://httpd.apache.org/), [`NGINX`](https://nginx.org/en/) and [Microsoft IIS](https://www.iis.net/) web servers logs.

## Metrics

Expand Down Expand Up @@ -166,6 +166,8 @@ Notes:
- Don't use both `$bytes_sent` and `$body_bytes_sent` (`%O` and `%B` or `%b`). The module does not distinguish between
these parameters.

Weblog uses the same NGINX pattern when parsing Microsoft IIS.

ilyam8 marked this conversation as resolved.
Show resolved Hide resolved
## Custom Log Format

Custom log format is easy. Use [known fields](#known-fields) to construct your log format.
Expand Down Expand Up @@ -316,6 +318,12 @@ jobs:
log_type: csv
csv_config:
format: '- - %h - - %t \"%r\" %>s %b'

- name: iis
path: /mnt/c/inetpub/logs/LogFiles/W3SVC1/u_ex221108.log
log_type: csv
csv_config:
format: '- - $host $request_method $request_uri - $server_port - $remote_add - - $status - - $request_time'
thiagoftsm marked this conversation as resolved.
Show resolved Hide resolved
```

For all available options, please see the
Expand Down
Loading