Skip to content

[azure] Handle IPv6 addresses in activity/audit/platform logs #2138

@andrewkroh

Description

@andrewkroh

The activity/audit/platform logs data streams use a grok to extract IP addresses but they don't handle IPv6.

- grok:
field: azure.activitylogs.callerIpAddress
patterns:
- \[%{IPORHOST:source.ip}\]:%{INT:source.port:int}
- "%{IPORHOST:source.ip}:%{INT:source.port:int}"
- "%{IPORHOST:source.ip}"
ignore_missing: true
ignore_failure: true

I made changes to the SignInLogs to handle IPv6 so a similar solution could be used for these other data streams. #1721

{"type":"illegal_argument_exception","reason":"'2a00' is not an IP string literal."}}, dropping event!
"ipAddress":"2a00:
Although getting other drops such as
{"type":"mapper_parsing_exception","reason":"object mapping for [azure.activitylogs.identity] tried to parse field [identity] as object, but found a concrete value"}, dropping event!

Metadata

Metadata

Assignees

Labels

Integration:azureAzure LogsbugSomething isn't working, use only for issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions