WebKeeper SG

Download 166
Last updated Nov 16, 2026

webkeeper-logs

Fetch web proxy logs from Elastic of WebKeeper SG.

Syntax

webkeeper-logs [profile=PROFILE] [duration=NUM{mon|w|d|h|m|s}] [from=yyyyMMddHHmmss] [to=yyyyMMddHHmmss] [offset=NUM] [limit=NUM]

Options

profile=PROFILE
Optional. The identifier of WebKeeper SG connect profile. If omitted, all WebKeeper SG connect profiles are queried.
duration=NUM{mon|w|d|h|m|s}
Optional. Scan only recent data. You should use s(second), m(minute), h(hour), d(day), mon(month) time unit. For example, 10s means data from 10 seconds earlier.
from=yyyyMMddHHmmss
Optional. Start time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
to=yyyyMMddHHmmss
Optional. End time of range. yyyyMMddHHmmss format. If you omit time part, it will be padded by zero.
offset=NUM
Optional. Skip count
limit=NUM
Optional. Max output count

Output fields

FieldTypeNameDescription
_timeDateTime
guidStringLog GUID
agent_idStringAgent ID
userStringUser
emp_nameStringEmployee name
dept_nameStringDepartment name
src_ipIPSource IP
dst_ipIPDestination IP
dst_portIntegerDestination port
policyStringPolicy
category_codeIntegerCategory codee.g. 900010000000512
categoryStringCategory namee.g. Internet (general)
methodStringHTTP MethodGET, POST
domainStringDomaine.g. example.com
pathStringPath
queryStringQuery string
refererStringHTTP referer
file_numIntegerFile count
keywordStringKeyword
post_sizeIntegerHTTP post size
pass_block_typeIntegerBlock type0: PERMIT, 256: CATEGORY_BLOCK, 512: SIZE_BLOCK
post_size_limitIntegerPOST size limit
dept_codeStringDepartment code
user_guidStringUser GUID

Error codes

Parsing errors

Error messageCauseSolution
invalid-webkeeper-profileThe connect profile in the profile option does not existCheck the identifier of the WebKeeper SG connect profile in System > Connect Profiles
no-permissionThe profile option is omitted and there is no WebKeeper SG connect profile you can accessAdd a WebKeeper SG connect profile or check its permission

Runtime errors

Error messageCauseSolution
webkeeper error, profile=PROFILE - causeCannot connect to the Elastic server or the response is invalidCheck the Elastic URL of the connect profile and the firewall policy from Sonar to the Elastic web port

Description

The Elastic indices of WebKeeper SG (starting with wk_) store web logs and NetApp logs together. This command fetches only web (http) logs. Log types are distinguished by documents which have the receive time field (http_rcvtime).

If duration, from, or to is specified, indices are selected by the index format of the connect profile, and the range is limited by the receive time. Without a period, all indices are scanned, so specify a period when there is a lot of data. Results are not sorted by time.

offset and limit apply to the whole result across connect profiles and indices.

category is the web category name of category_code. path and query are split from the original URI by ?.

Note
In app 1.2.2610.0 or earlier, a query without a period may fail when NetApp logs are in the index. Use app 1.3.2611.0 or later.

Examples

Example: Top blocked web domains

Situation: Find domains with many web accesses blocked by category policy in the last day.

webkeeper-logs profile=webkeeper duration=1d
| search pass_block_type == 256
| stats count by domain, category
| sort -count
| limit 10

Expected result:

domaincategorycount
example.comGame120
www.example.comGambling35

Interpretation: Check whether the policy works as intended for the blocked domains and categories, and whether specific users access them repeatedly.