Parsleaf

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 columnUDM field
date + timemetadata.event_timestamp (UTC), x-cs-timestamp as fallback
x-typemetadata.product_event_type (http_transaction, WebSocket)
x-transaction-idmetadata.product_log_id
c-ipprincipal.ip and principal.asset.ip
x-cs-useripprincipal.nat_ip
x-cs-src-portprincipal.port
cs-username / x-c-authn-userprincipal.user.userid and principal.user.email_addresses
x-c-hostnameprincipal.hostname
x-c-os-family, x-c-os-versionprincipal.platform, principal.platform_version
x-c-location, x-c-countryprincipal.location
s-iptarget.ip and target.asset.ip
cs-hosttarget.hostname
x-cs-urltarget.url
cs-uri-porttarget.port
x-cs-apptarget.application
x-cs-app-object-name, x-rs-file-type, x-rs-file-sizetarget.file.full_path, mime_type, size
x-rs-file-md5, x-rs-file-sha256target.file.md5, target.file.sha256
cs-method, sc-status, cs-user-agentnetwork.http.method, response_code, user_agent
cs-bytes, sc-bytesnetwork.sent_bytes, network.received_bytes
x-cs-ssl-version, x-cs-ssl-ciphernetwork.tls.version, network.tls.cipher
x-s-dp-nameintermediary.hostname (the Netskope data plane)
x-policy-action / x-actionsecurity_result.action (ALLOW / BLOCK)
x-policy-namesecurity_result.rule_name
x-tp-malware-name, x-tp-severitysecurity_result.threat_name, severity, category SOFTWARE_MALICIOUS
app activity, CCI/CCL, access method, instance, device classificationadditional.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.

  1. No columns option. The SecOps csv filter takes source, separator and on_error, and always writes column1 … columnN. Logstash-style named columns are not how it works. It does handle quoted values with commas, such as user agents, correctly.
  2. Do not blank - before splitting. Netskope writes - for empty values. Keep them through the csv step so every column exists, and treat - as empty afterwards.
  3. rename fails onto an existing field. If you initialise dt_date to "" at the top (good practice for "not found in state data"), then rename => { "column1" => "dt_date" } fails and leaves it empty. Copy with replace => { "dt_date" => "%{column1}" } instead, one column per mutate.
  4. Never convert => ipaddress before a merge. It turns the value into bytes, and merging it into principal.ip fails with non-string given for backstory.Noun.ip: []uint8. Validate the IP with a pattern and merge the original string.

Detections this unlocks

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.