question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Component template for `process.*` field set cannot be used as is.

See original GitHub issue

Description of the problem including expected versus actual behavior: The changes in v8.2.0 makes the generated component template for the process.* field set too large to be uploaded to elasticsearch without additional modifications.

Steps to reproduce:

  1. Using v8.2.0 of the ECS repo, navigate to ./generated/elasticsearch/composable/component/.
  2. curl https://elasticsearch:9200/_component_template/ecs_8.2.0_process -X PUT -u $AUTH -H "Content-Type: application/json" -d @process.json
  3. Elasticsearch responds with an error. The template cannot be created because it contains more than 1000 fields.

Any additional context:

Adding a section for index settings to the template in order to increase the field limit allows it to be created.

The v8.2.0 changes also makes the provided example template contain too many fields. The field limit 2000 is too low.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
wallrikcommented, Jul 11, 2022

I can re-open this issue if needed, but I feel like maybe it’s outside the scope of my initial report.

Anyway, steps to reproduce: (Follow the steps under Setup and Install and Usage from ecs/USAGE.md)

$ git clone https://github.com/elastic/ecs.git
$ python -m venv virtual-env
$ . virtual-env/bin/activate

$ cd ecs
$ git checkout v8.3.1
$ python -m pip install -r scripts/requirements.txt
$ cat generated/elasticsearch/composable/component/process.json | grep "type" | wc -l
324
$ python scripts/generator.py
Loading schemas from local files
Running generator. ECS version 8.3.1
$ cat generated/elasticsearch/composable/component/process.json | grep "type" | wc -l
1760
1reaction
djptekcommented, Jul 11, 2022

Maybe it is just a matter of clarifying the readme file

Sounds like a plan

@javanna which fieldset are you generating?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Component Templates in a Workspace Connected to Altium ...
This page looks at the Component Template content type in a connected Workspace. Covers areas including folder and item properties, ...
Read more >
Create or update component template API - Elastic
Component templates are only used during index creation. For data streams, this includes data stream creation and the creation of a stream's backing...
Read more >
Data Binding in a Template - Salesforce Lightning Component ...
Bind properties in a component's template to properties in the component's JavaScript class. In the template, surround the property with curly braces, { ......
Read more >
typescript - How can I use/create dynamic template to compile ...
A trick here is - it builds a template which uses some set of known properties, e.g. entity . Such property(-ies) must be...
Read more >
XSL Transformations (XSLT) Version 3.0 - W3C
This node was used as the target node for the implicit call on xsl:apply-templates used to start the transformation process (now called the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found