Skip to content

Commit 0624b35

Browse files
committed
Back to the simpler email address check.
1 parent e4f35c2 commit 0624b35

File tree

2 files changed

+2
-2
lines changed
  • packages/azure/data_stream
    • identity_protection/elasticsearch/ingest_pipeline
    • signinlogs/elasticsearch/ingest_pipeline

2 files changed

+2
-2
lines changed

packages/azure/data_stream/identity_protection/elasticsearch/ingest_pipeline/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ processors:
225225
- set:
226226
field: user.email
227227
copy_from: azure.identityprotection.properties.user_principal_name
228-
if: "(ctx.azure?.identityprotection?.properties?.user_principal_name ?: '') =~ /^[^@]+@[^@]+$/"
228+
if: ctx.azure?.identityprotection?.properties?.user_principal_name?.contains('@') == true
229229
- grok:
230230
field: azure.identityprotection.properties.user_principal_name
231231
patterns:

packages/azure/data_stream/signinlogs/elasticsearch/ingest_pipeline/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ processors:
226226
- set:
227227
field: user.email
228228
copy_from: azure.signinlogs.properties.user_principal_name
229-
if: "(ctx.azure?.signinlogs?.properties?.user_principal_name ?: '') =~ /^[^@]+@[^@]+$/"
229+
if: ctx.azure?.signinlogs?.properties?.user_principal_name?.contains('@') == true
230230
- grok:
231231
field: azure.signinlogs.properties.user_principal_name
232232
patterns:

0 commit comments

Comments
 (0)