Skip to content

Commit 2f19a2d

Browse files
authored
tenable_sc.vulnerability: Update mapping of tenable_sc.vulnerability.plugin.text field to match_only_text (elastic#16508)
The "tenable_sc.vulnerability.plugin.text" field stores several details of vulnerable packages found on the host. It is currently mapped to "keyword". It can grow larger than maximum "ignore_above" limit of keywordfields, making it unusable in searches. This PR updates the data type of "tenable_sc.vulnerability.plugin.text" field to "match_only_text" to allow searches on this field. This is a breaking-change because the data types "keyword" and "match_only_text" are from different family [1] and could break users' custom Kibana dashboards or queries. [1] https://www.elastic.co/docs/reference/elasticsearch/mapping-reference/field-data-types
1 parent 4598dc6 commit 2f19a2d

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

packages/tenable_sc/changelog.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# newer versions go on top
2+
- version: "2.0.0"
3+
changes:
4+
- description: >-
5+
Update mapping of `tenable_sc.vulnerability.plugin.text` field from `keyword`to `match_only_text`.
6+
This could break custom Kibana dashboards or queries that rely on the `tenable_sc.vulnerability.plugin.text` field.
7+
type: breaking-change
8+
link: https://github.com/elastic/integrations/pull/16508
29
- version: "1.32.1"
310
changes:
411
- description: Fix handling of vulnerablity documents that do not contain a seeAlso field.

packages/tenable_sc/data_stream/vulnerability/fields/fields.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
description: |
161161
The date on which the vulnerability was published.
162162
- name: text
163-
type: keyword
163+
type: match_only_text
164164
description: |
165165
Text provided by plugin. (Usually plugin output text).
166166
- name: port

packages/tenable_sc/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ An example event for `vulnerability` looks as following:
696696
| tenable_sc.vulnerability.plugin.mod_date | The date on which the vulnerability was modified. | date |
697697
| tenable_sc.vulnerability.plugin.name | The name of the plugin. | keyword |
698698
| tenable_sc.vulnerability.plugin.pub_date | The date on which the vulnerability was published. | date |
699-
| tenable_sc.vulnerability.plugin.text | Text provided by plugin. (Usually plugin output text). | keyword |
699+
| tenable_sc.vulnerability.plugin.text | Text provided by plugin. (Usually plugin output text). | match_only_text |
700700
| tenable_sc.vulnerability.port | The port the scanner used to communicate with the asset. | keyword |
701701
| tenable_sc.vulnerability.protocol | The protocol the scanner used to communicate with the asset. | keyword |
702702
| tenable_sc.vulnerability.recast_risk | Modified the severity risk measure of vulnerabilities using recast rules. | keyword |

packages/tenable_sc/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ format_version: "3.3.2"
22
name: tenable_sc
33
title: Tenable Security Center
44
# The version must be updated in the input configuration templates as well, in order to set the correct User-Agent header. Until elastic/kibana#121310 is implemented we will have to manually sync these.
5-
version: "1.32.1"
5+
version: "2.0.0"
66
description: |
77
Collect data from Tenable Security Center with Elastic Agent.
88
type: integration

0 commit comments

Comments
 (0)