Nowadays in many cases it is more convenient to have logs in json. These changes allow process such logs without losing any previous functionality.
The new option is introduced - LogFormatJsonMap. This option should contain a json for mapping keys in log file into awstats's predefined keys. This configuration will be used only if the LogFormat will have the value json.
Example:
NB. The are no direct correspondence of predefined keys and $pos_* variables. So LogFormatJsonMap should use suffixes from $pos_* variables. As example: instead of bytesd the key size should be used; instead of ua - agent.
Nowadays in many cases it is more convenient to have logs in json. These changes allow process such logs without losing any previous functionality.
The new option is introduced -
LogFormatJsonMap
. This option should contain a json for mapping keys in log file into awstats's predefined keys. This configuration will be used only if theLogFormat
will have the valuejson
. Example:NB. The are no direct correspondence of predefined keys and
$pos_*
variables. SoLogFormatJsonMap
should use suffixes from$pos_*
variables. As example: instead ofbytesd
the keysize
should be used; instead ofua
-agent
.