forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle IPv6 zone id in IIS filebeat ingest pipeline (elastic#9869)
IIS logs can include zone ids when using IPv6, this is correctly parsed but geoip processor doesn't accept these addresses. Create a temporary field without the zone id to be used by geoip processor.
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#Software: Microsoft HTTP API 2.0 | ||
#Version: 1.0 | ||
#Date: 2018-12-30 13:48:36 | ||
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri streamid sc-status s-siteid s-reason s-queuename | ||
2018-12-30 14:22:07 ::1%0 49958 ::1%0 80 - - - - - - Timer_ConnectionIdle - |
16 changes: 16 additions & 0 deletions
16
filebeat/module/iis/error/test/ipv6_zone_id.log-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"@timestamp": "2018-12-30T14:22:07.000Z", | ||
"ecs.version": "1.0.0-beta2", | ||
"event.dataset": "error", | ||
"event.module": "iis", | ||
"iis.error.queue_name": "-", | ||
"iis.error.reason_phrase": "Timer_ConnectionIdle", | ||
"iis.error.remote_ip": "::1%0", | ||
"iis.error.remote_port": "49958", | ||
"iis.error.server_ip": "::1%0", | ||
"iis.error.server_port": "80", | ||
"input.type": "log", | ||
"log.offset": 195 | ||
} | ||
] |