-
Notifications
You must be signed in to change notification settings - Fork 474
[Azure Logs] Add caller_ip_address field for sign-in logs #8813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Azure Logs] Add caller_ip_address field for sign-in logs #8813
Conversation
Checking all other fields like |
🚀 Benchmarks reportTo see the full report comment with |
@@ -83,8 +83,7 @@ processors: | |||
value: '{{{azure.signinlogs.properties.ip_address}}}' | |||
ignore_empty_value: true | |||
- set: | |||
if: ctx?.source?.address == null | |||
field: source.address | |||
field: azure.signinlogs.properties.caller_ip_address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we add the signinlogs.caller_ip_address
into the signinlogs.properties.caller_ip_address
what happens with the following use-cases,
- The
callerIpAddress
field is outside the properties when we receive from the Azure. Can we capture this field in the same way? - In a certain scenarios we will get
caller_ip_address
inside the properties as well. How do we handle that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Done, makes sense to keep it as the original.
- I couldn't find a scenario where
caller_ip_address
is inside the properties unless dynamic mapping was applied, which shouldn't be a problem anymore.
Also worth noting that there are no custom log capabilities in Azure for sign-in logs.
@@ -93,11 +92,15 @@ processors: | |||
type: ip | |||
ignore_missing: true | |||
ignore_failure: true | |||
- convert: | |||
field: azure.signinlogs.properties.caller_ip_address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
field: azure.signinlogs.properties.caller_ip_address | |
field: azure.signinlogs.caller_ip_address |
packages/azure/data_stream/signinlogs/elasticsearch/ingest_pipeline/default.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Package azure - 1.8.3 containing this change is available at https://epr.elastic.co/search?package=azure |
Proposed commit message
Add pipeline processing for callerIpAddress field to the Azure sign-in logs.
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots