diff --git a/packages/azure_network_watcher_vnet/changelog.yml b/packages/azure_network_watcher_vnet/changelog.yml index c21df52f804..e41c2d8a7b8 100644 --- a/packages/azure_network_watcher_vnet/changelog.yml +++ b/packages/azure_network_watcher_vnet/changelog.yml @@ -1,4 +1,9 @@ # newer versions go on top +- version: "0.2.2" + changes: + - description: Fix field guards for MAC address processors. + type: bugfix + link: https://github.com/elastic/integrations/pull/10777 - version: "0.2.1" changes: - description: Remove reference to a Kibana version from the README. diff --git a/packages/azure_network_watcher_vnet/data_stream/log/elasticsearch/ingest_pipeline/default.yml b/packages/azure_network_watcher_vnet/data_stream/log/elasticsearch/ingest_pipeline/default.yml index 75e4fbac7a9..212b689248a 100644 --- a/packages/azure_network_watcher_vnet/data_stream/log/elasticsearch/ingest_pipeline/default.yml +++ b/packages/azure_network_watcher_vnet/data_stream/log/elasticsearch/ingest_pipeline/default.yml @@ -106,11 +106,11 @@ processors: field: json.macAddress tag: uppercase_mac_address ignore_missing: true - if: ctx.json?.macAddress !='' && ctx.json.macAddress != null + if: ctx.json?.macAddress != null && ctx.json.macAddress != '' target_field: azure_network_watcher_vnet.log.mac_address - gsub: field: azure_network_watcher_vnet.log.mac_address - if: ctx.azure_network_watcher_vnet?.log?.mac_address != '' && ctx.azure_network_watcher_vnet.log.mac_address!= null + if: ctx.azure_network_watcher_vnet?.log?.mac_address != null && ctx.azure_network_watcher_vnet.log.mac_address!= '' tag: gsub_mac_address pattern: '(..)(?!$)' replacement: '$1-' diff --git a/packages/azure_network_watcher_vnet/manifest.yml b/packages/azure_network_watcher_vnet/manifest.yml index 396ad00a73e..8a722eef29d 100644 --- a/packages/azure_network_watcher_vnet/manifest.yml +++ b/packages/azure_network_watcher_vnet/manifest.yml @@ -1,7 +1,7 @@ format_version: 3.1.2 name: azure_network_watcher_vnet title: Azure Network Watcher VNet -version: "0.2.1" +version: "0.2.2" description: Collect logs from Azure Network Watcher VNet with Elastic Agent. type: integration categories: