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

Adding Nested fields support #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

securitym0nkey
Copy link

This adds support to parse into nested map[string]interface{} maps when using ParseTyped().

It implements what's requested in Issue #35. Though only for gork.ParseTyped(). The functionality was deliberately NOT implemented for grok.Parse() as it returns a map[string]string but for the nesting functionality map[string]interface{} is needed. Thus it would break backwards compatibility.

This adds support to parse into nested map[string]interface{} maps when
using parseTyped().

To better deal with special characters in field names hashing(md5) is used
for aliases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant