WebKeeper SG

Download 164
Last updated Nov 16, 2026

webkeeper-netapps-logs

Fetch NetApp logs from Elastic of WebKeeper SG.

Syntax

webkeeper-netapps-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
policyStringPolicy
actionStringActionPERMIT, DENY
userStringUser
emp_nameStringEmployee name
dept_nameStringDepartment name
dept_idStringDepartment ID
dept_codeStringDepartment code
src_ipIPSource IP
dst_ipIPDestination IP
dst_portIntegerDestination port
category_codeIntegerCategory codeNetApp category code
service_codeIntegerService codeNetApp service 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 NetApp (netapps) logs. Log types are distinguished by documents which have the receive time field (apps_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.

Elastic provides NetApp categories and services only as numeric codes, so they are output as is in category_code and service_code. The allow/block value (apps_isblock) is normalized to action: 3 is PERMIT, 2 is DENY.

Note
Fetching NetApp logs is supported in app 1.3.2611.0 or later.

Examples

Example: NetApp blocks

Situation: Check blocked NetApp accesses by user in the last hour.

webkeeper-netapps-logs profile=webkeeper duration=1h
| search action == "DENY"
| stats count by user, dst_ip
| sort -count

Expected result:

userdst_ipcount
test_user192.0.2.315
user1192.0.2.44

Interpretation: Check users and destinations with repeated blocks to decide whether a policy exception is needed for a business service or it is an attempt to bypass the policy.