Artica Wiki

How to use Synology as Log Management service for storing Artica Proxy web requests

Use the Synology in order to stores Internet access events.

Create a log receiver on your Synology server

On your Synology make sure the “Log center” feature is running and installed.

Click on the Open button

A new receiver is added on your Synology server

Set Artica to send logs to your Synology using syslog

Search events on your Synology

How to personalize events

The <format specification> is a string with embedded % format codes 
% format codes all follow the same basic structure where all components but the format code are optional and usually unnecessary
 especially when dealing with common codes.

% [encoding] [-] [[0]width] [{arg}] formatcode [{arg}]

Encoding escapes or otherwise protects "special" characters:

"  Quoted string encoding where quote(") and backslash(\) characters are \-escaped while CR, LF, and TAB characters are encoded as \r, \n, and \t two-character sequences.

[  Custom proxy encoding where percent(%), square brackets([]), backslash(\) and characters with  codes outside of [32,126] range are %-encoded. 

  # URL encoding (a.k.a. percent-encoding) where all URL unsafe and control characters (per RFC1738) are %-encoded.

/   Shell-like encoding where quote(") and  backslash(\) characters are \-escaped while CR  and LF characters are encoded as \r and \n  two-character sequences. Values containing SP   character(s) are surrounded by quotes(").

'  Raw/as-is encoding with no escaping/quoting.

Default encoding: When no explicit encoding is specified, each %code determines its own encoding.
Most %codes use raw/as-is encoding, but some codes use  a so called "pass-through URL encoding" where all URL  unsafe and control characters (per RFC 1738) are  %-encoded, but the percent character(%) is left as is.

-  left aligned width   minimum and/or maximum field width: [width_min][.width_max]
When minimum starts with 0, the field is zero-padded.
String values exceeding maximum width are truncated.

{arg}   argument such as header name etc. This field may be placed before or after the token, but not both at once.

Format codes:

SIZE COUNTERS

TIMING

[http::]<pt: Peer response time in milliseconds. The timer starts when the last request byte is sent to the next hop and stops when the last response byte is received.

[http::]<tt: Total time in milliseconds. The timer  starts with the first connect request (or write I/O) sent to the first selected peer. The timer stops with the last I/O with the last peer.