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

Ignore nonexistent "source" fields #27

Open
philhagen opened this issue Jun 22, 2023 · 1 comment
Open

Ignore nonexistent "source" fields #27

philhagen opened this issue Jun 22, 2023 · 1 comment

Comments

@philhagen
Copy link

philhagen commented Jun 22, 2023

Version 3.1.3 fails if a non-existent field is provided in the source array. The plugin should silently skip any nonexistent field specified here so the configuration can provide a list of potential fields and tag accordingly.

At present, a Invalid IP address, skipping {:address=>"%{field_name}" log is created.

@philhagen
Copy link
Author

philhagen commented Jun 24, 2023

I suspect this might be implemented by ignoring blank/nonexistent value for a at this point:

IPAddr.new(event.sprintf(a))

However, my ruby skills are thin to nonexistent so I am hesitant to suggest a specific code change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant