The elastic-integration-corpus-generator-tool is a valuable resource for generating test corpus for testing & benchmarking. To improve its usability and functionality, we have identified several areas for enhancement in this issue.
Notes
Enum Support:
Currently, enum is only supported for the keyword type.
Extend enum support to other relevant types, such as the long type.
Use case: http-response-status-code of long type could benefit from enum support.
I understand the point to remove these variables and instead they should be generated directly just by saying $agentName for example. For example if there is again a field that user defines named agentName with type long then that would be a collision as we have reserved the agentName as ECS field. Partly saying, we need to mention that for ECS fields there is a reserved naming convention for example host.id -> hostId which should not be generated again for some other field generation. Hope this is only the point discussed here.
Notes are extracted from GitHub issues and the related PR linked. From the notes itself, some tasks have been created to get started with the enhancements for the tool. Also, there few more issues in the PR linked from which we have to extract notes and tasks.
Introduction
The elastic-integration-corpus-generator-tool is a valuable resource for generating test corpus for testing & benchmarking. To improve its usability and functionality, we have identified several areas for enhancement in this issue.
Notes
Enum Support:
Configuration Simplification:
Counter Type Enhancements:
Formatting Pattern Feature:
Clarification Needed:
$agentName
for example. For example if there is again a field that user defines namedagentName
with type long then that would be a collision as we have reserved the agentName as ECS field. Partly saying, we need to mention that for ECS fields there is a reserved naming convention for examplehost.id
->hostId
which should not be generated again for some other field generation. Hope this is only the point discussed here.Return better error messages
Related PRs and Issues:
Notes are extracted from GitHub issues and the related PR linked. From the notes itself, some tasks have been created to get started with the enhancements for the tool. Also, there few more issues in the PR linked from which we have to extract notes and tasks.
Tasks
counter
type[ ] General enhancements and bug-fixes
CC: @tommyers-elastic @ruflin