Install Guide
Overview
This app collects the web access logs and NetApp logs of Somansa WebKeeper SG into Logpresso Sonar. Three collection methods are available. Choose the one that fits your environment.
| Method | Logger model | Logs | Description |
|---|---|---|---|
| File (SFTP) | WebKeeper SG (SFTP) | Web, NetApp | Sonar connects over SFTP and reads the CSV log files exported by WebKeeper |
| Elastic | WebKeeper SG 웹 (Elastic) | Web | Sonar reads documents directly from the Elastic indices that WebKeeper SG writes to |
| Elastic | WebKeeper SG 넷앱 (Elastic) | NetApp | Same as above, for NetApp logs |
| Syslog | WebKeeper SG (Syslog) | Web, NetApp | Sonar receives the logs that WebKeeper SG sends over syslog |
For file and syslog collection, the parser the app provides determines the log type, sets the log_type field to http (web) or netapps (NetApp), and normalizes each log to the webkeeper-http or webkeeper-netapps schema. Elastic NetApp logs are stored with the webkeeper-netapps schema, and Elastic web logs with the common webfilter schema.
Scope
Requirements
| Item | Requirement | Note |
|---|---|---|
| Sonar permission | System administrator permission | Access to Collect > Loggers and System > Connect Profiles |
| File access (file collection) | Read permission on the log file directory | For the SFTP account |
| Network (file collection) | TCP/22 (Sonar collection node → log file host) | Use the changed port if SSH runs on a different port |
| Network (Elastic collection) | Elastic web port (Sonar collection node → Elastic server) | Set the firewall policy so that Logpresso can reach the Elastic web port |
| Network (syslog collection) | UDP/514 or TCP/514 (WebKeeper SG → Sonar collection node, inbound) | Apply the firewall policy |
WebKeeper SG Settings (Syslog Collection)
Required only for syslog collection. Set the Sonar collection node as the syslog destination of WebKeeper SG.
- Enter the IP address of the Sonar collection node as the destination address.
- Use the same port and protocol as the Sonar logger (UDP/514 by default).
- Send both web logs and NetApp logs.
The app parses the tcprelaying syslog format of WebKeeper SG. Web logs are in the order of user, action, host, URL, category, server port, method, user IP, server IP, policy, and event time. NetApp logs are in the order of user, server port, category, user IP, server IP, NetApp, operation, action, policy, and event time. Logs sent in other formats are stored as is as unclassified.
Logpresso Collection Settings
File (SFTP) collection
Step 1: Add an SSH connect profile
The SFTP logger connects to the log file host with an SSH type connect profile. Go to System > Connect Profiles, click Add, and enter the following values.
| Type | Item | Setting |
|---|---|---|
| Required | Name | A unique name that identifies the connect profile |
| Required | Identifier | A unique identifier of the connect profile used in Logpresso queries |
| Required | Type | Select SSH |
| Required | Host | IP address or host name of the log file host |
| Required | Port | SSH port. Defaults to 22 |
| Required | Account | Account with read permission on the log file directory |
| Required | Authentication type | Select Auth key or Password |
| Optional | Password | Enter when the authentication type is password |
| Required | Timeout | Connection timeout in seconds. Defaults to 30 |
| Optional | Keep alive | Keep-alive interval in milliseconds |
When you finish, run the connection test and make sure it succeeds.
Step 2: Add a logger
Go to Collect > Loggers, click Add, and enter the following values.
| Type | Item | Setting |
|---|---|---|
| Required | Name | A unique name that identifies the logger |
| Required | Execution mode | Select Interval |
| Required | Interval | Collection interval in seconds |
| Required | Storage location | Select the node that stores the logs |
| Optional | Collection location | Select the sentry that performs the collection |
| Required | Logger model | Select WebKeeper SG (SFTP) |
| Required | Table | Name of the table that stores the logs. e.g. WEBKEEPER |
| Required | SSH profile | The connect profile registered in step 1 |
| Required | Directory path | Absolute path of the directory that holds the log files |
| Required | File name pattern | Regular expression matching the names of the web and NetApp CSV files |
| Optional | Charset | Character encoding of the log files |
Elastic collection
Web logs and NetApp logs are stored together in the same Elastic index, but the logger models are separated by log type. To collect both types, add one logger for each with the same connect profile.
Step 1: Add a connect profile
Go to System > Connect Profiles, click Add, select Webkeeper SG as the type, and enter the following values.
| Type | Item | Setting |
|---|---|---|
| Required | Name | A unique name that identifies the connect profile |
| Required | Identifier | A unique identifier of the connect profile used in Logpresso queries |
| Required | Type | Select Webkeeper SG |
| Required | Elastic URL | Elastic address (in the form of https://IP) |
| Required | ES indices format | Index creation cycle. Daily yyyyMMdd, weekly yyyyMM_W, monthly yyyy_MM |
Step 2: Add a logger
Go to Collect > Loggers, click Add, and enter the following values.
| Type | Item | Setting |
|---|---|---|
| Required | Name | A unique name that identifies the logger |
| Required | Execution mode | Select Interval |
| Required | Interval | Collection interval in seconds |
| Required | Storage location | Select the node that stores the logs |
| Optional | Collection location | Select the sentry that performs the collection |
| Required | Logger model | Select WebKeeper SG 웹 (Elastic) for web logs, WebKeeper SG 넷앱 (Elastic) for NetApp logs |
| Required | Table | Name of the table that stores the logs. e.g. WEBKEEPER |
| Required | Connect profile | Name of the connect profile registered in step 1 |
| Required | Log collection start date | Date from which to collect logs, in yyyyMMdd format |
| Optional | Wait time (seconds) | To prevent duplicate collection, collects only logs older than this time from now. Defaults to 5 |
Syslog collection
Go to Collect > Loggers, click Add, and enter the following values.
| Type | Item | Setting |
|---|---|---|
| Required | Name | A unique name that identifies the logger |
| Required | Storage location | Select the node that stores the logs |
| Optional | Collection location | Select the sentry that performs the collection |
| Required | Logger model | Select WebKeeper SG (Syslog) |
| Required | Table | Name of the table that stores the logs. e.g. WEBKEEPER |
| Optional | Remote IP | IP of WebKeeper SG. Supports a single IP, an IP1-IP2 range, and CIDR |
| Optional | Port | Receiving port filter. If empty, logs from all receiving ports are accepted |







