Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[system] Missing event.original mappings #4006

Closed
andrewkroh opened this issue Aug 16, 2022 · 2 comments · Fixed by #4012
Closed

[system] Missing event.original mappings #4006

andrewkroh opened this issue Aug 16, 2022 · 2 comments · Fixed by #4012
Assignees
Labels
bug Something isn't working, use only for issues Integration:system System Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team [elastic/elastic-agent-data-plane]

Comments

@andrewkroh
Copy link
Member

A mapping for event.original is missing from the auth and security data streams.

# Data streams that support preserve_original_event.
% find . -name '*.hbs*' | xargs grep preserve_original_event$
./data_stream/security/agent/stream/httpjson.yml.hbs:  - preserve_original_event
./data_stream/auth/agent/stream/log.yml.hbs:  - preserve_original_event
./data_stream/system/agent/stream/httpjson.yml.hbs:  - preserve_original_event
./data_stream/application/agent/stream/httpjson.yml.hbs:  - preserve_original_event
# Check if event.original exists in fields.yml files.
% go install github.com/andrewkroh/go-examples/fields-yml@main
% for i in $(find system/data_stream -maxdepth 1 | grep -E '/(security|auth|system|application)$'); do fields-yml -w=false $i/fields/*.yml | grep -q ^event.original && echo Found in $i || echo Missing from $i; done 
Missing from system/data_stream/security
Missing from system/data_stream/auth
Found in system/data_stream/system
Found in system/data_stream/application
@andrewkroh andrewkroh added bug Something isn't working, use only for issues Team:Security-External Integrations Integration:system System Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team [elastic/elastic-agent-data-plane] labels Aug 16, 2022
@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@elasticmachine
Copy link

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, use only for issues Integration:system System Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team [elastic/elastic-agent-data-plane]
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants