short_message field in graylog output hard set to "telegraf" #6683
Labels
feature request
Requests for new plugin and for new features to existing plugins
Milestone
The graylog output plugin is hard setting the required "short_message" field in the GELF message to the string "telegraf". This is happening on line 217 of the output plugin.
It should be setting it to whatever the "short_message" (or "message") field is in the input metric. The way it works now, the actual log messages from the logparser input are not actually passed to Graylog properly.
I don't know 'go' at all or I would have done a pull request with proper error handling.
System info:
telegraf-1.12.5-1
Expected behavior:
Something like...
m["short_message"] = metric.Fields()["short_message"]
Actual behavior:
m["short_message"] = "telegraf"
The text was updated successfully, but these errors were encountered: