Skip to content

Commit b037f8d

Browse files
[O11y][Citrix ADC] Resolve the conflicts in host.ip field (#7509)
* resolve host.ip field conflict * resolving review comments * update pr link in changelog.yml * update readme.md * Update readme
1 parent 6569314 commit b037f8d

File tree

10 files changed

+37
-3
lines changed

10 files changed

+37
-3
lines changed

packages/citrix_adc/_dev/build/docs/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,15 @@ After the integration is successfully configured, clicking on the Assets tab of
4545

4646
### Troubleshooting
4747

48+
#### Dummy values
49+
4850
There could be a possibility that for some of the fields, Citrix ADC sets dummy values. For example, a field `cpuusagepcnt` is represented by `citrix_adc.system.cpu.utilization.pct`. `cpuusagepcnt` is set to `4294967295` for some [instances](https://github.com/citrix/citrix-adc-metrics-exporter/issues/44). If you also encounter it for some fields please reach out to the [Citrix ADC support team](https://support.citrix.com/plp/products/citrix_adc/tabs/popular-solutions).
4951

52+
53+
#### Type conflicts
54+
55+
If host.ip is shown conflicted under ``logs-*`` data view, then this issue can be solved by [reindexing](https://www.elastic.co/guide/en/elasticsearch/reference/current/use-a-data-stream.html#reindex-with-a-data-stream) the ``Interface``, ``LBVserver``, ``Service``, ``System``, and ``VPN`` data stream's indices.
56+
5057
## Metrics reference
5158

5259
### Interface

packages/citrix_adc/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: "0.7.1"
3+
changes:
4+
- description: Resolve host.ip field conflict.
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/7509
27
- version: "0.7.0"
38
changes:
49
- description: Rename ownership from obs-service-integrations to obs-infraobs-integrations

packages/citrix_adc/data_stream/interface/fields/ecs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
name: event.module
1515
- external: ecs
1616
name: event.type
17+
- external: ecs
18+
name: host.ip
1719
- external: ecs
1820
name: interface.id
1921
- external: ecs

packages/citrix_adc/data_stream/lbvserver/fields/ecs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
name: event.module
1515
- external: ecs
1616
name: event.type
17+
- external: ecs
18+
name: host.ip
1719
- external: ecs
1820
name: related.ip
1921
- external: ecs

packages/citrix_adc/data_stream/service/fields/ecs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
name: event.module
1515
- external: ecs
1616
name: event.type
17+
- external: ecs
18+
name: host.ip
1719
- external: ecs
1820
name: related.ip
1921
- external: ecs

packages/citrix_adc/data_stream/system/elasticsearch/ingest_pipeline/default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ processors:
124124
def bytes = (megabytes*1024*1024);
125125
return bytes;
126126
}
127-
if(ctx.citrix_adc?.system?.memory?.size?.value!=null || ctx.citrix_adc?.system?.memory?.size?.value!=""){
127+
if(ctx.citrix_adc?.system?.memory?.size?.value!=null && ctx.citrix_adc?.system?.memory?.size?.value!=""){
128128
ctx.citrix_adc.system.memory.size.value = convert(ctx.citrix_adc.system.memory.size.value);
129129
}
130-
if(ctx.citrix_adc?.system?.memory?.usage?.value!=null || ctx.citrix_adc?.system?.memory?.usage?.value!=""){
130+
if(ctx.citrix_adc?.system?.memory?.usage?.value!=null && ctx.citrix_adc?.system?.memory?.usage?.value!=""){
131131
ctx.citrix_adc.system.memory.usage.value = convert(ctx.citrix_adc.system.memory.usage.value);
132132
}
133133
- script:

packages/citrix_adc/data_stream/system/fields/ecs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@
1414
name: event.module
1515
- external: ecs
1616
name: event.type
17+
- external: ecs
18+
name: host.ip
1719
- external: ecs
1820
name: tags

packages/citrix_adc/data_stream/vpn/fields/ecs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@
1414
name: event.module
1515
- external: ecs
1616
name: event.type
17+
- external: ecs
18+
name: host.ip
1719
- external: ecs
1820
name: tags

packages/citrix_adc/docs/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,15 @@ After the integration is successfully configured, clicking on the Assets tab of
4545

4646
### Troubleshooting
4747

48+
#### Dummy values
49+
4850
There could be a possibility that for some of the fields, Citrix ADC sets dummy values. For example, a field `cpuusagepcnt` is represented by `citrix_adc.system.cpu.utilization.pct`. `cpuusagepcnt` is set to `4294967295` for some [instances](https://github.com/citrix/citrix-adc-metrics-exporter/issues/44). If you also encounter it for some fields please reach out to the [Citrix ADC support team](https://support.citrix.com/plp/products/citrix_adc/tabs/popular-solutions).
4951

52+
53+
#### Type conflicts
54+
55+
If host.ip is shown conflicted under ``logs-*`` data view, then this issue can be solved by [reindexing](https://www.elastic.co/guide/en/elasticsearch/reference/current/use-a-data-stream.html#reindex-with-a-data-stream) the ``Interface``, ``LBVserver``, ``Service``, ``System``, and ``VPN`` data stream's indices.
56+
5057
## Metrics reference
5158

5259
### Interface
@@ -257,6 +264,7 @@ An example event for `interface` looks as following:
257264
| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | |
258265
| event.module | Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), `event.module` should contain the name of this module. | keyword | | |
259266
| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | | |
267+
| host.ip | Host ip addresses. | ip | | |
260268
| input.type | Type of Filebeat input. | keyword | | |
261269
| interface.id | Interface ID as reported by an observer (typically SNMP interface ID). | keyword | | |
262270
| tags | List of keywords used to tag each event. | keyword | | |
@@ -484,6 +492,7 @@ An example event for `lbvserver` looks as following:
484492
| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | |
485493
| event.module | Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), `event.module` should contain the name of this module. | keyword | | |
486494
| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | | |
495+
| host.ip | Host ip addresses. | ip | | |
487496
| input.type | Type of Filebeat input. | keyword | | |
488497
| related.ip | All of the IPs seen on your event. | ip | | |
489498
| server.ip | IP address of the server (IPv4 or IPv6). | ip | | |
@@ -654,6 +663,7 @@ An example event for `service` looks as following:
654663
| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | |
655664
| event.module | Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), `event.module` should contain the name of this module. | keyword | | |
656665
| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | | |
666+
| host.ip | Host ip addresses. | ip | | |
657667
| input.type | Type of Filebeat input. | keyword | | |
658668
| related.ip | All of the IPs seen on your event. | ip | | |
659669
| service.name | Name of the service data is collected from. The name of the service is normally user given. This allows for distributed services that run on multiple hosts to correlate the related instances based on the name. In the case of Elasticsearch the `service.name` could contain the cluster name. For Beats the `service.name` is by default a copy of the `service.type` field if no name is specified. | keyword | | |
@@ -799,6 +809,7 @@ An example event for `system` looks as following:
799809
| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | | |
800810
| event.module | Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), `event.module` should contain the name of this module. | keyword | | |
801811
| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | | |
812+
| host.ip | Host ip addresses. | ip | | |
802813
| input.type | Type of Filebeat input. | keyword | | |
803814
| tags | List of keywords used to tag each event. | keyword | | |
804815

@@ -1042,5 +1053,6 @@ An example event for `vpn` looks as following:
10421053
| event.kind | This is one of four ECS Categorization Fields, and indicates the highest level in the ECS category hierarchy. `event.kind` gives high-level information about what type of information the event contains, without being specific to the contents of the event. For example, values of this field distinguish alert events from metric events. The value of this field can be used to inform how these kinds of events should be handled. They may warrant different retention, different access control, it may also help understand whether the data coming in at a regular interval or not. | keyword | |
10431054
| event.module | Name of the module this data is coming from. If your monitoring agent supports the concept of modules or plugins to process events of a given source (e.g. Apache logs), `event.module` should contain the name of this module. | keyword | |
10441055
| event.type | This is one of four ECS Categorization Fields, and indicates the third level in the ECS category hierarchy. `event.type` represents a categorization "sub-bucket" that, when used along with the `event.category` field values, enables filtering events down to a level appropriate for single visualization. This field is an array. This will allow proper categorization of some events that fall in multiple event types. | keyword | |
1056+
| host.ip | Host ip addresses. | ip | |
10451057
| input.type | Type of Filebeat input. | keyword | |
10461058
| tags | List of keywords used to tag each event. | keyword | |

packages/citrix_adc/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 2.0.0
22
name: citrix_adc
33
title: Citrix ADC
4-
version: "0.7.0"
4+
version: "0.7.1"
55
description: This Elastic integration collects metrics from Citrix ADC product.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)