Open runningman84 opened 8 years ago
It's confusing, so I'll try to clarify. It's likely we can improve the configuration of this plugin to make it more consistent.
The full_message
setting supports formatted/sprintf values so you could do: full_message => "Hello, %{user}! Your message is %{message}."
-- and the field values for 'user' and 'message' fields will be injected in place of things like %{user}
etc.
The short_message
setting takes a field name, not a formatted value. In this case, we are instructing Logstash to populate the GELF short_message field with the event field named short_message
.
The differences between these two settings are confusing (one supports formatting, the other just wants a field name).
Does this clarify the current behavior?
I am open to making short_message support formatting. Thoughts?
Yes that helps, I would recommend to give short_message also formatting support.
What is the difference between "%{message}" and "message"? Why do you use "%{message}" and "short_message"?
What is the best practice here?