Artica Wiki

Proxy Access Logs (Events Center)

Route the proxy access log per population: dedicated files, syslog/SIEM export, or no logging at all.

The Events Center (also called the proxy Logs Center) lets you decide, per population of users or machines, where the proxy access log of each request is written 
A dedicated log file, the local syslog daemon, or nowhere at all. 
Rules are built with the same objects library 
used by the proxy ACLs, so you can target source networks, IP addresses, users or any other object type.

The feature is available from the Web console under Your Proxy > Monitoring > Events Center. 
Members with the Proxy Monitor privilege can view the rules; modifying them requires the Squid Administrator privilege.

Events Center rules list

Each rule reads as a sentence: « rule name » For objects Is/Is not <object> then <action>. 
The last row is the Default rule: any request not swallowed by a "Do not log" rule above is always written to /var/log/squid/access.log.

Why use it — key advantages

Typical use cases

How it works

Each rule combines:

Rule order matters. The proxy evaluates the log outputs in the order displayed. A matching Do not log rule stops the evaluation: none of the outputs below it — including the default access.log — will record the request. Always place your Do not log rules at the top of the list (use the up/down arrows to reorder).

A rule with no linked object is ignored at build time — link at least one object for the rule to be effective.

Creating a rule

Click New Rule, give it a name, choose the log type and the position:

New rule form

After saving, re-open the rule: two more tabs are now available — Parameters and Objects.

Rule settings tab

Parameters

For a Write logs to a local file rule, set the file name (created under /var/log/squid/):

Log file name parameter

For a Send to local syslog daemon rule, choose the syslog facility your syslog daemon or SIEM collector listens on:

Syslog facility parameter

Do not log rules have no parameters.

Objects

Use the Objects tab to link the populations concerned by the rule. Objects come from the shared proxy objects library; the Is / Is not flag inverts the match:

Objects linked to the rule

Applying the rules

Changes are stored in the configuration database but only reach the proxy when you click Apply rules. The operation regenerates the logging configuration, validates it and reloads the proxy service only if something actually changed — a progress bar tracks the operation.

On the rules list, a local-file rule shows the current size of its log file; clicking the file name downloads a compressed copy of it.

Verifying the result

From a shell on the appliance:

REST API

The Logs Center is fully driven by the appliance REST API (local Unix socket /usr/share/artica-postfix/bin/run/articarest.sock):

Method Endpoint Purpose
GET /proxy/logs/acls List the rules
GET /proxy/logs/acls/{id} Get one rule
POST /proxy/logs/acls Create a rule (ruleName, enabled, logType 0=file, 1=do not log, 2=syslog, xOrder)
PUT /proxy/logs/acls/{id} Update a rule (partial)
PUT /proxy/logs/acls/{id}/move Move a rule up ({"dir":1}) or down ({"dir":0})
DELETE /proxy/logs/acls/{id} Delete a rule and its object links
GET /proxy/logs/apply Apply the rules (asynchronous rebuild + reload if needed)

Example — list the rules:

curl -s --unix-socket /usr/share/artica-postfix/bin/run/articarest.sock http://localhost/proxy/logs/acls

Good to know