Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

W3C

The W3C source tails log files written in the W3C Extended Log Format and parses each delimited line into structured log records. It reads the field definitions from the #Fields header in the log file and maps each value to the matching field name. This format is produced by Microsoft IIS, Exchange, and other services that emit W3C-style access logs.

Supported Telemetry Types

Platform
Metrics
Logs
Traces

Linux

✓

Windows

✓

macOS

✓

Prerequisites

  • Read access for the collector's user to the log files or directories you want to tail.

  • Log files in W3C Extended Log Format that include a #Fields header line defining the column names.

Configuration

Bindplane docs - W3C - image 1

General

Parameter
Type
Default
Description

File Path(s)

Strings

[]

File or directory paths to tail for logs.

Exclude File Path(s)

Strings

[]

File or directory paths to exclude.

Delimiter

Enum

tab

Delimiter character used between the fields of the W3C log line. Valid values: tab, space.

Advanced

Parameter
Type
Default
Description

Encoding

Enum

utf-8

The encoding of the file being read. Valid values: nop, utf-8, utf-16le, utf-16be, ascii, big5.

Header Delimiter

Enum

default

Delimiter character used between fields in the W3C #Fields header. When set to default, the value of delimiter is used. Valid values: default, tab, space.

Include File Name Attribute

Boolean

true

Whether to add the file name as the attribute log.file.name.

Include File Path Attribute

Boolean

false

Whether to add the file path as the attribute log.file.path.

Include File Name Resolved Attribute

Boolean

false

Whether to add the file name after symlink resolution as the attribute log.file.name_resolved.

Include File Path Resolved Attribute

Boolean

false

Whether to add the file path after symlink resolution as the attribute log.file.path_resolved.

Parse To

Enum

body

Parse structured log fields to either body or attributes. Valid values: body, attributes.

Parse

Boolean

true

Whether to parse the log fields into structured data. When disabled, lines are kept as raw text.

Example Configuration

Standalone Source

Configuration Tips

Matching the delimiter to your logs

  • Set delimiter to match how fields are separated in your log lines. Microsoft IIS W3C logs use a space delimiter, while many other W3C producers use tab.

  • If the #Fields header uses a different separator than the data rows, set header_delimiter explicitly. Leave it at default to reuse the delimiter value.

Selecting files

  • file_path accepts directory globs (for example, /var/log/w3c/*.log), so you can tail a rotating set of files with a single entry.

  • Use exclude_file_log_path to skip files that match the include pattern but should not be read, such as archived or compressed logs.

Where parsed fields land

  • parse_to controls whether the parsed W3C fields populate the log body or the log attributes. Use attributes if you want the individual fields available for downstream routing and processing.

Troubleshooting

Symptom: Logs are read but fields are not parsed into structured data. Solution: Confirm the log file contains a #Fields header line defining the column names. The receiver relies on that header to map values. Also verify delimiter matches the separator used in the file, and that parse is enabled.

Symptom: No log files are picked up. Solution: Check that file_path resolves to existing files and that the collector's user has read permission. If you are using a glob, confirm it matches the file names on disk and is not excluded by exclude_file_log_path.

Symptom: Field values appear garbled or contain unexpected characters. Solution: Set encoding to match the file's actual encoding. W3C logs from Windows services are often UTF-8, but some are written as UTF-16 (utf-16le or utf-16be).

Last updated

Was this helpful?