Commit ecd0f72
authored
Don't set dns.resolved_ip with invalid IP addresses (#18436)
Sometimes the DNS IP addresses from Sysmon in `winlog.event_data.QueryResults` are truncated.
The leads to mapping exceptions since the value is not of type `ip` in Elasticsearch.
To fix this the module will now filter any results that are not valid IP addresses.
Fixes #184321 parent 78b957a commit ecd0f72
File tree
3 files changed
+14
-15
lines changed- x-pack/winlogbeat/module/sysmon
- config
- test/testdata
3 files changed
+14
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| |||
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
432 | 433 | | |
433 | 434 | | |
434 | 435 | | |
435 | | - | |
| 436 | + | |
| 437 | + | |
436 | 438 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
441 | 448 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | 449 | | |
447 | 450 | | |
448 | 451 | | |
| |||
Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13341 | 13341 | | |
13342 | 13342 | | |
13343 | 13343 | | |
13344 | | - | |
13345 | | - | |
13346 | | - | |
13347 | | - | |
13348 | 13344 | | |
13349 | 13345 | | |
13350 | 13346 | | |
| |||
13403 | 13399 | | |
13404 | 13400 | | |
13405 | 13401 | | |
13406 | | - | |
13407 | | - | |
| 13402 | + | |
13408 | 13403 | | |
13409 | 13404 | | |
13410 | 13405 | | |
| |||
0 commit comments