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

[Schema] Update for AWS WAF Integration #198

Open
Utkarsh-Aga opened this issue Oct 17, 2024 · 1 comment
Open

[Schema] Update for AWS WAF Integration #198

Utkarsh-Aga opened this issue Oct 17, 2024 · 1 comment
Labels
enhancement New feature or request schema schema related issue

Comments

@Utkarsh-Aga
Copy link

Currently, when one uses the AWS WAF Integrations, the Index is considered to have the following mapping and the dashboard, visualizations are created based on that.

However, if we check the sample logs of the WAF then it seems to be quite different from the fields defined in the above mapping and fields like httpRequest are not within the aws.waf object. So, if one tries to send the default WAF logs to the OpenSearch, then this native integration cannot be used correctly.

Would like to propose that either an option to define the initial mapping of the Index should be provided [or the mapping should fetched when the Index is selected] or consider updating the schema of the Integration which matches the schema of the default WAF logs.

@Utkarsh-Aga Utkarsh-Aga added schema schema related issue untriaged labels Oct 17, 2024
@Swiddis Swiddis added enhancement New feature or request and removed untriaged labels Oct 17, 2024
@Swiddis
Copy link
Collaborator

Swiddis commented Oct 17, 2024

Thanks for the issue!

From the description it sounds like the logs aren't being mapped to OTEL. The current native integrations all have a specific format for cross-compatibility, so uploading the logs directly won't really work. Ideally we would have a way to specify the initial mapping or otherwise support raw fields directly at the install step as you suggest, but we haven't had the resources to implement that. The other alternative is to find a tool to convert the logs to OTEL -- last I heard this was in progress but still hasn't been finished.

In the meantime the supported fix would be to write a custom integration by hacking the dashboard fields1. The integrations are designed to be hackable to support arbitrary formats that way. I wish I had a more complete answer on-hand, an RFC in this direction would be welcome.

Footnotes

  1. I made an editor to make this easier, as part of a project that involved doing just that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request schema schema related issue
Projects
None yet
Development

No branches or pull requests

2 participants