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

Convert dots in field names to nested objects #24

Open
jazzzz opened this issue Nov 17, 2015 · 2 comments · May be fixed by #46 or #73
Open

Convert dots in field names to nested objects #24

jazzzz opened this issue Nov 17, 2015 · 2 comments · May be fixed by #46 or #73

Comments

@jazzzz
Copy link

jazzzz commented Nov 17, 2015

Because Elasticsearch 2 do not support dots in field names anymore, my Gelf logs with dots are not saved. This input plugin could convert fields with dots to objects.

Like

{
  "err.stack": "stack...",
  "err.file": "file",
  "err.line": 13
}

to

{
  "err": {
    "stack": "stack...",
    "file": "file",
    "line": 13
  }
}
@ph
Copy link
Contributor

ph commented Nov 17, 2015

You might want to use https://github.com/logstash-plugins/logstash-filter-de_dot as a fallback until this plugin is fixed.

@jazzzz
Copy link
Author

jazzzz commented Sep 13, 2016

logstash-filter-de_dot works great for objects, but I have not found a way to convert arrays.

{
  "err.0": "err 1",
  "err.1": "err 2"
}

to

{
  "err": ["err 1", "err 2"]
}

Cactusbone added a commit to F4-Group/logstash-input-gelf that referenced this issue Sep 14, 2016
@Cactusbone Cactusbone linked a pull request Sep 14, 2016 that will close this issue
Cactusbone added a commit to F4-Group/logstash-input-gelf that referenced this issue Oct 4, 2016
Cactusbone added a commit to F4-Group/logstash-input-gelf that referenced this issue Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants