Skip to content

Commit

Permalink
Replace zscaler.zia.deviceowner by user.name
Browse files Browse the repository at this point in the history
  • Loading branch information
TonioRyo committed Jul 10, 2024
1 parent 71ec6ea commit c3eee4a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 22 deletions.
5 changes: 0 additions & 5 deletions Zscaler/zscaler-zia/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ zscaler.zia.department:
name: zscaler.zia.department
type: keyword

zscaler.zia.device.owner:
description: ZScaler device owner
name: zscaler.zia.device.owner
type: keyword

zscaler.zia.event.outcome:
description: ZScaler event outcome
name: zscaler.zia.event.outcome
Expand Down
2 changes: 1 addition & 1 deletion Zscaler/zscaler-zia/ingest/parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ stages:
zscaler.zia.threat.name: "{{json_event.message.event.threatname}}"
zscaler.zia.threat.class: "{{json_event.message.event.threatclass}}"
zscaler.zia.threat.category: "{{json_event.message.event.threatcategory or json_event.message.event.threatcat}}"
zscaler.zia.device.owner: "{{json_event.message.event.deviceowner}}"
zscaler.zia.keyprotectiontype: "{{json_event.message.event.keyprotectiontype}}"
zscaler.zia.tuntype: "{{json_event.message.event.tuntype}}"
zscaler.zia.avgduration: "{{json_event.message.event.avgduration}}"
Expand Down Expand Up @@ -112,6 +111,7 @@ stages:
url.original: "{{json_event.message.event.fullurl}}"

user.email: "{{json_event.message.event.user or json_event.message.event.login}}"
user.name: "{{json_event.message.event.deviceowner}}"
network.protocol: "{{json_event.message.event.protocol or json_event.message.event.proto}}"

source.port: "{{json_event.message.event.csport or json_event.message.event.sourceport}}"
Expand Down
9 changes: 5 additions & 4 deletions Zscaler/zscaler-zia/tests/test_event_dns.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,23 @@
"ip": [
"1.2.3.4",
"5.6.7.8"
],
"user": [
"johndoe"
]
},
"source": {
"address": "1.2.3.4",
"ip": "1.2.3.4"
},
"user": {
"email": "[email protected]"
"email": "[email protected]",
"name": "johndoe"
},
"zscaler": {
"zia": {
"category": "Corporate Marketing",
"department": "Financial%20Dept",
"device": {
"owner": "johndoe"
},
"source_type": "zscalernss-dns"
}
}
Expand Down
9 changes: 5 additions & 4 deletions Zscaler/zscaler-zia/tests/test_event_firewall.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"ip": [
"1.2.3.4",
"5.6.7.8"
],
"user": [
"johndoe"
]
},
"source": {
Expand All @@ -41,15 +44,13 @@
"port": 52352
},
"user": {
"email": "[email protected]"
"email": "[email protected]",
"name": "johndoe"
},
"zscaler": {
"zia": {
"avgduration": "170000",
"department": "Financial%20Dept",
"device": {
"owner": "johndoe"
},
"source_type": "zscalernss-fw",
"threat": {
"category": "Threat category 2",
Expand Down
9 changes: 5 additions & 4 deletions Zscaler/zscaler-zia/tests/test_event_web.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
"ip": [
"1.2.3.4",
"5.6.7.8"
],
"user": [
"johndoe"
]
},
"server": {
Expand All @@ -62,7 +65,8 @@
"top_level_domain": "com"
},
"user": {
"email": "[email protected]"
"email": "[email protected]",
"name": "johndoe"
},
"user_agent": {
"device": {
Expand All @@ -78,9 +82,6 @@
"zia": {
"appname": "General Browsing",
"department": "Financial%20Dept",
"device": {
"owner": "johndoe"
},
"event_id": "1111111111111111111",
"keyprotectiontype": "N/A",
"product": "NSS",
Expand Down
9 changes: 5 additions & 4 deletions Zscaler/zscaler-zia/tests/test_event_web2.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
"ip": [
"1.2.3.4",
"5.6.7.8"
],
"user": [
"johndoe"
]
},
"server": {
Expand All @@ -65,7 +68,8 @@
"top_level_domain": "com"
},
"user": {
"email": "[email protected]"
"email": "[email protected]",
"name": "johndoe"
},
"user_agent": {
"device": {
Expand All @@ -81,9 +85,6 @@
"zia": {
"appname": "General Browsing",
"department": "Financial%20Dept",
"device": {
"owner": "johndoe"
},
"event_id": "1111111111111111111",
"keyprotectiontype": "N/A",
"product": "NSS",
Expand Down

0 comments on commit c3eee4a

Please sign in to comment.