Raccogli i log di Zscaler Email DLP
Questo documento descrive come esportare i log di Zscaler Email DLP configurando un feed di Google Security Operations e come i campi dei log vengono mappati ai campi di Unified Data Model (UDM) di Google SecOps.
Per saperne di più, consulta la panoramica sull'acquisizione dei dati in Google SecOps.
Un deployment tipico è costituito da Zscaler Email DLP e dal feed webhook di Google SecOps configurato per inviare i log a Google SecOps. Ogni deployment del cliente può essere diverso e più complesso.
Il deployment contiene i seguenti componenti:
Zscaler Email DLP: la piattaforma da cui raccogli i log.
Feed di Google SecOps: il feed di Google SecOps che recupera i log da Zscaler Email DLP e li scrive in Google SecOps.
Google SecOps: conserva e analizza i log.
Un'etichetta di importazione identifica il parser che normalizza i dati di log non elaborati nel formato UDM strutturato. Le informazioni contenute in questo documento si applicano al parser con l'etichetta di importazione ZSCALER_EMAIL_DLP.
Prima di iniziare
Assicurati di soddisfare i seguenti prerequisiti:
- Accesso alla console Zscaler Internet Access. Per saperne di più, consulta la guida di Secure Internet and SaaS Access ZIA.
- Zscaler Email DLP 2026 o versioni successive
- Tutti i sistemi nell'architettura di deployment sono configurati con il fuso orario UTC.
- La chiave API necessaria per completare la configurazione del feed in Google Security Operations. Per ulteriori informazioni, vedi Configura le chiavi API.
Configura i feed
Esistono due diversi punti di accesso per configurare i feed nella piattaforma Google SecOps:
- Impostazioni > Gestione dei dati > Feed > Aggiungi nuovo feed (su piattaforma solo SIEM, Impostazioni > Feed > Aggiungi nuovo feed)
- Content Hub > Content Packs > Get Started
Configura i feed da Impostazioni > Gestione dei dati > Feed
Per configurare più feed per diversi tipi di log all'interno di questa famiglia di prodotti, consulta Configura i feed per prodotto.
Per configurare un singolo feed:
- Vai a Impostazioni > Gestione dei dati > Feed. Se utilizzi una piattaforma solo SIEM, vai a Impostazioni > Feed.
- Fai clic su Aggiungi nuovo feed di notizie.
- Nella pagina successiva, fai clic su Configura un singolo feed.
- Nel campo Nome feed, inserisci un nome per il feed, ad esempio Log DLP email Zscaler.
- Seleziona Webhook come Tipo di origine.
- Seleziona Zscaler Email DLP come Log Type (Tipo di log).
- Fai clic su Avanti.
- (Facoltativo) Inserisci i valori per i seguenti parametri di input:
- Delimitatore di suddivisione: il delimitatore utilizzato per separare le righe dei log. Lascia il campo vuoto se non viene utilizzato un delimitatore.
- Spazio dei nomi dell'asset: lo spazio dei nomi dell'asset.
- Etichette di importazione: l'etichetta da applicare agli eventi di questo feed.
- Fai clic su Avanti.
- Rivedi la nuova configurazione del feed di notizie e poi fai clic su Invia.
- Fai clic su Genera chiave segreta per generare una chiave segreta per autenticare questo feed.
Configura i feed dall'hub dei contenuti
Specifica i valori per i seguenti campi:
- Delimitatore di suddivisione: il delimitatore utilizzato per separare le righe di log, ad esempio
\n.
Opzioni avanzate
- Nome del feed: un valore precompilato che identifica il feed.
- Tipo di origine: metodo utilizzato per raccogliere i log in Google SecOps.
- Spazio dei nomi dell'asset: lo spazio dei nomi dell'asset.
- Etichette di importazione: l'etichetta applicata agli eventi di questo feed.
- Fai clic su Avanti.
- Rivedi la configurazione del feed nella schermata Finalizza, quindi fai clic su Invia.
- Fai clic su Genera chiave segreta per generare una chiave segreta per autenticare questo feed.
Configura Zscaler Email DLP
- Nella console Zscaler Internet Access, fai clic su Administration> Nanolog Streaming Service > Cloud NSS Feeds e poi su Add Cloud NSS Feed.
- Viene visualizzata la finestra Add Cloud NSS Feed (Aggiungi feed NSS cloud). Nella finestra Add Cloud NSS Feed (Aggiungi feed NSS cloud), inserisci i dettagli.
- Inserisci un nome per il feed nel campo Feed Name (Nome feed).
- Seleziona NSS per il web in Tipo di NSS.
- Seleziona lo stato dall'elenco Status (Stato) per attivare o disattivare il feed NSS.
- Mantieni il valore Unlimited (Illimitato) nel menu a discesa SIEM Rate (Frequenza SIEM). Per sopprimere il flusso di output a causa di licenze o altri vincoli, modifica il valore.
- Seleziona Other (Altro) nell'elenco SIEM Type (Tipo di SIEM).
- Seleziona Disabled (Disattivato) nell'elenco OAuth 2.0 Authentication (Autenticazione OAuth 2.0).
- Inserisci un limite di dimensione per il payload di una singola richiesta HTTP in Max Batch Size (Dimensione massima batch). Configura questo valore su 512 KB, in quanto questa è la best practice consigliata per un'importazione SIEM ottimale. Nota: a volte, dimensioni dei batch inferiori possono ridurre la latenza a scapito di richieste HTTP più frequenti.
Inserisci l'URL HTTPS dell'endpoint API Chronicle nell'URL API nel seguente formato:
https://<CHRONICLE_REGION>-chronicle.googleapis.com/v1alpha/projects/<GOOGLE_PROJECT_NUMBER>/locations/<LOCATION>/instances/<CUSTOMER_ID>/feeds/<FEED_ID>:importPushLogsCHRONICLE_REGION: la regione in cui è ospitata l'istanza di Chronicle. Ad esempio, US.GOOGLE_PROJECT_NUMBER: il tuo numero di progetto Google Cloud .LOCATION: la regione di Chronicle. Ad esempio, US.CUSTOMER_ID: l'ID cliente Chronicle.FEED_ID- URL dell'API di esempio:
https://us-chronicle.googleapis.com/v1alpha/projects/12345678910/locations/US/instances/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/feeds/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy:importPushLogsFai clic su Aggiungi intestazione HTTP e poi aggiungi le intestazioni HTTP nel seguente formato:
Header 1: Key1:X-goog-api-keye Value1: chiave API generata in Credenziali API di Google Cloud.Header 2: Key2:X-Webhook-Access-Keye Value2: chiave segreta API generata in "SECRET KEY" (CHIAVE SEGRETA) del webhook.
Seleziona Email DLP (DLP per email) nell'elenco Log Types (Tipi di log).
Seleziona JSON nell'elenco Feed Output Type (Tipo di output del feed).
Disattiva il campo JSON Array Notation (Notazione di array JSON).
Imposta il campo Feed Escape Character (Carattere di escape del feed) su
, \ ".Per aggiungere un nuovo campo a Feed Output Format (Formato di output del feed), seleziona Custom (Personalizzato) nell'elenco Feed Output Type (Tipo di output del feed).
Copia e incolla il campo Feed Output Format (Formato di output del feed) e aggiungi nuovi campi. Assicurati che i nomi delle chiavi corrispondano ai nomi dei campi effettivi.
Di seguito è riportato il campo Feed Output Format (Formato di output del feed) predefinito:
\{"sourcetype": "zscalernss-emaildlp", "event": \{"mailsenttime": "%s{mail_sent_time}", "scantime": "%u{scan_time}", "recordid": "%llu{recordid}", "company": "%s{company}", "tenant": "%s{tenant}", "user": "%s{username}", "dept": "%s{departmentname}", "filenames": "%s{ac_names}", "filemd5s": "%s{ac_md5s}", "doctypes": "%s{ac_doctypes}", "filesizes": "%s{ac_sizes}", "filetypes": "%s{ac_filetypes}", "dlpdictnames": "%s{dlpdictnames}", "dlpdictcnts": "%s{dlpdictcnts}", "dlpengnames": "%s{dlpengnames}", "dlpidentifier": "%llu{dlpidentifier}", "triggeredrcpts": "%s{trigg_rcpts}", "severity": "%s{severity}", "action": "%s{action}", "rulename": "%s{rulelabels}", "otherrcpts": "%s{other_rcpts}", "subject": "%s{subject}", "msgid": "%s{msgid}"\}\}Seleziona il fuso orario per il campo Time (Ora) nel file di output nell'elenco Timezone (Fuso orario). Per impostazione predefinita, il fuso orario è impostato su quello della tua organizzazione.
Rivedi le impostazioni configurate.
Fai clic su Save (Salva) per verificare la connettività. Se la connessione è riuscita, viene visualizzato un segno di spunta verde accompagnato dal messaggio Test Connectivity Successful: OK (200) (Test di connettività riuscito: OK (200)).
Per ulteriori informazioni sui feed di Google SecOps, consulta la documentazione sui feed di Google SecOps. Per informazioni sui requisiti di ogni tipo di feed, consulta Configurazione del feed per tipo.
Se riscontri problemi durante la creazione dei feed, contatta l'assistenza di Google SecOps.
Formati dei log di Zscaler Email DLP supportati
Il parser Zscaler Email DLP supporta i log in formato JSON.
Log di esempio di DLP email di Zscaler supportati
JSON
{ "sourcetype": "zscalernss-emaildlp", "event": { "mailsenttime": "Wed Feb 4 04:11:09 2026", "scantime": "25", "recordid": "7602857773514883073", "company": "Sample Company", "tenant": "sample.com", "user": "dummyuser@sample.com", "dept": "Default Department", "filenames": "test.xlsx", "filemd5s": "0d67b8287a735240724384f293ee364f", "doctypes": "None", "filesizes": "8824", "filetypes": "xlsx", "dlpdictnames": "Credit Cards: Detect leakage of credit card information", "dlpdictcnts": "10", "dlpengnames": "", "dlpidentifier": "7602857773514883076", "triggeredrcpts": "test2@sample.com", "severity": "High Severity", "action": "Block", "rulename": "DLP_Rule_7", "otherrcpts": "None", "subject": "Test Subject", "msgid": "863fcac3-4040-495f-9ec6-b41abd054ca7@sample.com" } }
Riferimento per la mappatura dei campi
La tabella seguente elenca i campi comuni del tipo di log ZSCALER_EMAIL_DLP e i campi UDM corrispondenti.
| Log field | UDM mapping | Logic |
|---|---|---|
sourcetype |
additional.fields[sourcetype] |
|
|
metadata.event_type |
The metadata.event_type UDM field is set to EMAIL_TRANSACTION, provided principal and metadata objects are populated. |
|
metadata.vendor_name |
The metadata.vendor_name UDM field is set to Zscaler. |
|
metadata.product_name |
The metadata.product_name UDM field is set to Email DLP. |
time |
metadata.collected_timestamp |
|
ss |
additional.fields[ss] |
|
mm |
additional.fields[mm] |
|
hh |
additional.fields[hh] |
|
day |
additional.fields[day] |
|
dd |
additional.fields[dd] |
|
mon |
additional.fields[mon] |
|
mth |
additional.fields[mth] |
|
yyyy |
additional.fields[yyyy] |
|
rtime |
additional.fields[rtime] |
|
rss |
additional.fields[rss] |
|
rmm |
additional.fields[rmm] |
|
rhh |
additional.fields[rhh] |
|
rday |
additional.fields[rday] |
|
rdd |
additional.fields[rdd] |
|
rmon |
additional.fields[rmon] |
|
rmth |
additional.fields[rmth] |
|
ryyyy |
additional.fields[ryyyy] |
|
tz |
additional.fields[tz] |
|
datacenter |
intermediary.location.name |
|
datacentercity |
intermediary.location.city |
|
datacentercountry |
intermediary.location.country_or_region |
|
company |
principal.user.company_name |
|
dept |
principal.user.department |
|
owner |
principal.user.email_addresses |
If the owner log field value is not empty and matches the regular expression pattern (^.@.$) and (^.{0,255}$), then the owner log field is mapped to the principal.user.email_addresses UDM field.
|
sender |
principal.user.email_addresses |
If the sender log field value is not empty and matches the regular expression pattern (^.@.$) and (^.{0,255}$), then the sender log field is mapped to the principal.user.email_addresses UDM field.
|
user |
principal.user.email_addresses |
If the user log field value is not empty and matches the regular expression pattern (^.@.$) and (^.{0,255}$), then the user log field is mapped to the principal.user.email_addresses UDM field.
|
extusername |
principal.user.email_addresses |
If the extusername log field value is not empty and matches the regular expression pattern (^.@.$) and (^.{0,255}$), then the extusername log field is mapped to the principal.user.email_addresses UDM field.
|
owner |
principal.user.userid |
If the owner log field value is not empty and
Else, if the sender log field value is not empty and
Else, if the user log field value is not empty and
Else, if the extusername log field value is not empty and
|
owner |
network.email.from |
If the owner log field value is not empty and the owner log field value matches the regular expression patterns (^.+@.+$) and (^.{0,255}$) then, owner log field is mapped to the network.email.from UDM field.Else, if the sender log field value is not empty and the sender log field value matches the regular expression patterns (^.+@.+$) and (^.{0,255}$) then, sender log field is mapped to the network.email.from UDM field.Else, if the user log field value is not empty and the user log field value matches the regular expression patterns (^.+@.+$) and (^.{0,255}$) then, user log field is mapped to the network.email.from UDM field.Else, if the extusername log field value is not empty and the extusername log field value matches the regular expression patterns (^.+@.+$) and (^.{0,255}$) then, extusername log field is mapped to the network.email.from UDM field. |
mailsenttime |
metadata.event_timestamp |
|
zs_rcv_time |
additional.fields[zs_rcv_time] |
|
zs_sent_time |
additional.fields[zs_sent_time] |
|
epochmail_sent_time |
additional.fields[epochmail_sent_time] |
|
tenant |
principal.administrative_domain |
|
appname |
principal.application |
|
msgid |
network.email.mail_id |
|
subject |
network.email.subject |
|
filemd5s |
security_result.about.file.md5 |
Attachment MD5 hashes separated by pipe delimiters (|) are extracted from the filemd5s log field, then each extracted MD5 hash is mapped to the security_result.about.file.md5 UDM field.
|
filesizes |
security_result.about.file.size |
Email attachment sizes separated by pipe delimiters (|) are extracted from the filesizes log field, then each extracted email attachment size is mapped to the security_result.about.file.size UDM field.
|
filetypes |
security_result.about.file.file_type |
Email attachment filetypes separated by pipe delimiters (|) are extracted from the
filetypes log field, and
|
doctypes |
security_result.detection_fields[doctypes] |
Document-types separated by pipe delimiters (|) are extracted from the doctypes log field, then the UDM field security_result.detection_fields.key is set to doctypes_%{index} and the document-type is mapped to the security_result.detection_fields.value UDM field.
|
filenames |
security_result.about.file.names |
Attachment file-names separated by pipe delimiters (|) are extracted from the filenames log field, then the extracted attachment file-name is mapped to the security_result.about.file.names UDM field.
|
triggeredrcpts |
network.email.to |
Email addresses separated by pipe delimiters (|) are extracted from the triggeredrcpts log field, and if each extracted email address matches the regular expression patterns (^.+@.+$) and (^.{0,255}$), then the extracted email address is mapped to the network.email.to UDM field.
|
triggeredrcpts |
target.user.email_addresses |
Email addresses separated by pipe delimiters (|) are extracted from the triggeredrcpts log field, and if each extracted email address matches the regular expression patterns (^.+@.+$) and (^.{0,255}$), then the extracted email address is mapped to the target.user.email_addresses UDM field.
|
triggeredrcpts |
security_result.about.email |
Email addresses separated by pipe delimiters (|) are extracted from the triggeredrcpts log field and then combined using comma (,), and
|
otherrcpts |
network.email.to |
Email addresses separated by pipe delimiters (|) are extracted from the otherrcpts log field, and if each extracted email address matches the regular expression patterns (^.+@.+$) and (^.{0,255}$), then the extracted email address is mapped to the network.email.to UDM field.
|
otherrcpts |
target.user.email_addresses |
Email addresses separated by pipe delimiters (|) are extracted from the otherrcpts log field, and if each extracted email address matches the regular expression patterns (^.+@.+$) and (^.{0,255}$), then the extracted email address is mapped to the target.user.email_addresses UDM field.
|
trigg_rcpt_doms |
security_result.about.domain.name |
Unique triggered recipient-domains separated by pipe delimiters (|) are extracted from the trigg_rcpt_doms log field and then combined using comma (,), and
|
other_rcpt_doms |
about.domain.name |
Unique recipient-domains separated by pipe delimiters (|) are extracted from the other_rcpt_doms log field and then combined using comma (,), and
|
scantime |
security_result.detection_fields[scantime] |
|
dlpidentifier |
security_result.detection_fields[dlpidentifier] |
|
dlpdictnames |
security_result.category_details |
DLP dict-names separated by pipe delimiters (|) are extracted from the dlpdictnames log field, then each extracted DLP dict-name is mapped to the security_result.category_details UDM field.
|
dlpdictcnts |
security_result.detection_fields[dlpdictcnts] |
DLP dict-counts separated by pipe delimiters (|) are extracted from the dlpdictcnts log field, then the UDM field security_result.detection_fields.key is set to dlpdictcnts_%{index} and the DLP dict-count is mapped to the security_result.detection_fields.value UDM field.
|
dlpengnames |
security_result.detection_fields[dlpengnames] |
DLP engine-names separated by pipe delimiters (|) are extracted from the dlpengnames log field, then the UDM field security_result.detection_fields.key is set to dlpengnames_%{index} and the DLP engine-name is mapped to the security_result.detection_fields.value UDM field.
|
recordid |
metadata.product_log_id |
|
logtype |
metadata.product_event_type |
|
severity |
security_result.severity_details |
|
|
security_result.severity |
If the severity log field value matches the regular expression pattern (^High.*), then the security_result.severity UDM field is set to High.Else, if the severity log field value matches the regular expression pattern (^Info.*), then the security_result.severity UDM field is set to INFORMATIONAL.Else, if the severity log field value matches the regular expression pattern (^Medium.*), then the security_result.severity UDM field is set to MEDIUM.Else, if the severity log field value matches the regular expression pattern (^Low.*), then the security_result.severity UDM field is set to LOW.Else, the security_result.severity UDM field is set to UNKNOWN_SEVERITY.
|
actions |
security_result.action_details |
Actions separated by pipe delimiters (|) are extracted from the actions log field, then combined using comma (,) is mapped to the security_result.action_details UDM field.
|
|
security_result.action |
Actions separated by pipe delimiters (|) are extracted from the action log field and
|
rulename |
security_result.rule_labels |
Rulenames separated by pipe delimiters (|) are extracted from the rulename log field, then the extracted rulename is mapped to the security_result.rule_labels UDM field.
|
Log delle modifiche
Visualizza il log delle modifiche per questo parser
Hai bisogno di ulteriore assistenza? Ricevi risposte dai membri della community e dai professionisti di Google SecOps.