Skip to content

Commit 49c8a7d

Browse files
authored
cel: Add xsd configuration option to input. (elastic#11602)
* Add xsd configuration option to input.
1 parent 7841c31 commit 49c8a7d

File tree

3 files changed

+32
-1
lines changed

3 files changed

+32
-1
lines changed

packages/cel/agent/input/input.yml.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ regexp:
2121
{{regexp}}
2222
{{/if}}
2323

24+
{{#if xsd}}
25+
xsd:
26+
{{xsd}}
27+
{{/if}}
28+
2429
{{#if username}}
2530
auth.basic.user: {{username}}
2631
{{/if}}

packages/cel/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
- version: "1.13.0"
2+
changes:
3+
- description: Add xsd configuration option inside input.
4+
type: enhancement
5+
link: https://github.com/elastic/integrations/pull/11602
16
- version: "1.12.0"
27
changes:
38
- description: ECS version updated to 8.11.0. Update the kibana constraint to ^8.13.0. Modified the field definitions to remove ECS fields made redundant by the ecs@mappings component template.

packages/cel/manifest.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: cel
33
title: Custom API using Common Expression Language
44
description: Collect custom events from an API with Elastic agent
55
type: input
6-
version: "1.12.0"
6+
version: "1.13.0"
77
categories:
88
- custom
99
conditions:
@@ -90,6 +90,27 @@ policy_templates:
9090
default: |
9191
#products: '(?i)(Elasticsearch|Beats|Logstash|Kibana)'
9292
#solutions: '(?i)(Search|Observability|Security)'
93+
- name: xsd
94+
type: textarea
95+
title: XML Schema Definitions (XSD) for XML documents.
96+
description: |
97+
The XSD needed for correct parsing and ingestion of XML documents using decode_xml CEL extension.
98+
More information can be found in the [documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-cel.html#xsd-cel).
99+
show_user: false
100+
multi: false
101+
required: false
102+
default: |
103+
# order: |
104+
# <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
105+
# <xs:element name="order">
106+
# <xs:complexType>
107+
# <xs:sequence>
108+
# <xs:element name="sender" type="xs:string"/>
109+
# <xs:element name="address">
110+
# <xs:complexType>
111+
# <xs:sequence>
112+
# <xs:element name="name" type="xs:string"/>
113+
# <xs:element name="company" type="xs:string"/>
93114
- name: username
94115
type: text
95116
title: Basic Auth Username

0 commit comments

Comments
 (0)