Log types with no default parser
Netskope Log Streaming parser for Google SecOps
Google SecOps lists NETSKOPE_LOG_STREAMING without a default parser. Netskope Log Streaming is the replacement for the retired transaction event streaming, and it delivers everything as CSV. Without a parser the lines stay raw: no users, no IPs, no blocked uploads in UDM Search, and no detections.
Below is the mapping of a parser Parsleaf generated for transaction events in the Universal format (Parser Order 2, 197 columns in Netskope's published order, header row first) and validated in a Google SecOps tenant. Alerts & Events streams use columns each admin picks, so build those parsers from your own export.
Event types
Every web and cloud-app transaction becomes NETWORK_HTTP, with x-type kept in metadata.product_event_type. Blocks, user alerts and threat verdicts land in security_result, so one event type covers allowed browsing, DLP-style upload blocks and malware downloads. Lines that are not a valid transaction stay GENERIC_EVENT, and the header row is dropped.
Field mapping
| Netskope column | UDM field |
|---|---|
date + time | metadata.event_timestamp (UTC), x-cs-timestamp as fallback |
x-type | metadata.product_event_type (http_transaction, WebSocket) |
x-transaction-id | metadata.product_log_id |
c-ip | principal.ip and principal.asset.ip |
x-cs-userip | principal.nat_ip |
x-cs-src-port | principal.port |
cs-username / x-c-authn-user | principal.user.userid and principal.user.email_addresses |
x-c-hostname | principal.hostname |
x-c-os-family, x-c-os-version | principal.platform, principal.platform_version |
x-c-location, x-c-country | principal.location |
s-ip | target.ip and target.asset.ip |
cs-host | target.hostname |
x-cs-url | target.url |
cs-uri-port | target.port |
x-cs-app | target.application |
x-cs-app-object-name, x-rs-file-type, x-rs-file-size | target.file.full_path, mime_type, size |
x-rs-file-md5, x-rs-file-sha256 | target.file.md5, target.file.sha256 |
cs-method, sc-status, cs-user-agent | network.http.method, response_code, user_agent |
cs-bytes, sc-bytes | network.sent_bytes, network.received_bytes |
x-cs-ssl-version, x-cs-ssl-cipher | network.tls.version, network.tls.cipher |
x-s-dp-name | intermediary.hostname (the Netskope data plane) |
x-policy-action / x-action | security_result.action (ALLOW / BLOCK) |
x-policy-name | security_result.rule_name |
x-tp-malware-name, x-tp-severity | security_result.threat_name, severity, category SOFTWARE_MALICIOUS |
app activity, CCI/CCL, access method, instance, device classification | additional.fields |
Four CBN traps that silently break CSV parsers
None of these raise an error. The parser runs, and you get GENERIC_EVENT with the whole line in metadata.description, or an event with fields quietly missing. Each was confirmed with a small diagnostic parser in a SecOps tenant.
- No
columnsoption. The SecOpscsvfilter takessource,separatorandon_error, and always writescolumn1…columnN. Logstash-style named columns are not how it works. It does handle quoted values with commas, such as user agents, correctly. - Do not blank
-before splitting. Netskope writes-for empty values. Keep them through thecsvstep so every column exists, and treat-as empty afterwards. renamefails onto an existing field. If you initialisedt_dateto""at the top (good practice for "not found in state data"), thenrename => { "column1" => "dt_date" }fails and leaves it empty. Copy withreplace => { "dt_date" => "%{column1}" }instead, one column permutate.- Never
convert => ipaddressbefore a merge. It turns the value into bytes, and merging it intoprincipal.ipfails withnon-string given for backstory.Noun.ip: []uint8. Validate the IP with a pattern and merge the original string.
Detections this unlocks
- Blocked uploads of sensitive files to personal cloud storage, by user, file name and app instance.
- Malware downloads with MD5 and SHA-256 ready for threat intel matching.
- Visits to phishing, anonymiser and paste sites from managed and unmanaged devices.
- Generative AI usage where users justified past a coaching prompt.
Testing it
Test one transaction per line. If the first line you paste is the header row, the parser drops it and the editor reports that no UDM events were generated, which is the correct behaviour.
Get this parser
Paste the header row and 20 or more of your own transaction lines into Parsleaf with Google SecOps selected. If your stream uses a different field list or parser order, the parser is built on your exact columns. Your first parser is free.