Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The PARSE-AS-LOG directive parses access log files, such as from Apache HTTPD and nginx servers.

Syntax

Code Block
parse-as-log :column 'format'

Usage Notes

The PARSE-AS-LOG directive provides a generic log parser that you construct by specifying the <formatof the log line or the format in which the file was written. The format, which specifies the configuration options of the log line, becomes the schema of the access log lines as written by the service.

...

For nginx, the format tokens are specified by log_format and embedded variables.

Examples

The format for common log is:

...