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

short_message should be remapped even if it is empty #50

Open
kongslund opened this issue Oct 14, 2016 · 0 comments
Open

short_message should be remapped even if it is empty #50

kongslund opened this issue Oct 14, 2016 · 0 comments

Comments

@kongslund
Copy link

When receiving a GELF event with an empty short_message and no full_message then it does not get remapped as expected. This is a consequence of PR #18 by @ggtools.

Removing the && !event.get("short_message").empty?-part would fix it.

  • Version: 2.4.0
  • Operating System: Linux
  • Config File:
input {
  gelf {
    port => 12201
    type => "gelf"
  }
}
output {
  stdout { codec => rubydebug }
}
  • Sample Data:
{
  "version": "1.1",
  "host": "example.org",
  "short_message": "",
  "timestamp": 1385053862.3072,
  "level": 1,
  "_user_id": 9001,
  "_some_info": "foo",
  "_some_env_var": "bar"
}
  • Steps to Reproduce:
    Feed sample data to Logstash and observe that the output contains short_message instead of message.
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

No branches or pull requests

1 participant