Skip to content

Commit 6450074

Browse files
authored
[Cisco FTD] added nullcheck for Network Directionality when zones aren't configured (#8883)
* Added nullcheck * added manifest+changelog * removing the ? as ctx cannot be null
1 parent d55b8b1 commit 6450074

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

packages/cisco_ftd/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "3.0.3"
3+
changes:
4+
- description: Added nullcheck for Network Directionality when zones aren't configured
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/8883
27
- version: "3.0.2"
38
changes:
49
- description: Fix the handling of spaces in 113005 messages.

packages/cisco_ftd/data_stream/log/elasticsearch/ingest_pipeline/default.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,11 +2114,12 @@ processors:
21142114
- script:
21152115
description: Calculate network.direction if zones are not configured
21162116
lang: painless
2117-
if: "ctx?.tags?.contains('private_is_internal') &&
2118-
ctx?.source?.ip != null &&
2119-
ctx?.destination?.ip != null &&
2120-
(ctx?._temp_?.external_zones == null ||
2121-
ctx?._temp_?.internal_zones == null)"
2117+
if: "ctx.tags != null &&
2118+
ctx.tags.contains('private_is_internal') &&
2119+
ctx.source?.ip != null &&
2120+
ctx.destination?.ip != null &&
2121+
(ctx._temp_?.external_zones == null ||
2122+
ctx._temp_?.internal_zones == null)"
21222123
source: |
21232124
boolean isPrivateCIDR(def ip) {
21242125
CIDR class_a_network = new CIDR('10.0.0.0/8');

packages/cisco_ftd/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: "3.0.0"
22
name: cisco_ftd
33
title: Cisco FTD
4-
version: "3.0.2"
4+
version: "3.0.3"
55
description: Collect logs from Cisco FTD with Elastic Agent.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)