Skip to main content

commonlog

Laurence MorganAbout 1 min

commonlog

Apache httpd "common" log format

Description

Apache httpd supports a few different log formats. This Murex type is for parsing the "common" log format.

Detail

The code here is very rudimentary. If you have large log files or need more complex data querying then this data-type is probably not the right tool. Maybe try one of the following:

Supported Hooks

  • Marshal() Supported though no unmarshalling is currently supported
  • ReadArray() Supported. Each line is considered an index (like with str data type)
  • ReadArrayWithType() Supported. Each line is considered an index with commonlog data type
  • ReadIndex() Entire log file is read and then the indexes are derived from there
  • ReadMap() Not supported, currently a work in progress
  • ReadNotIndex() Entire log file is read and then the indexes are derived from there

See Also

  • * (generic): generic (primitive)
  • [[ Element ]]: Outputs an element from a nested structure
  • cast: Alters the data type of the previous function without altering it's output
  • format: Reformat one data-type into another data-type
  • str (string): string (primitive)
  • index: Outputs an element from an array, map or table

Read more about type hooks


This document was generated from builtins/types/apachelogs/apachelogs_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence