Does anybody know who to configure Logstash Slack output section in logstash.conf?
I tried to do the following using this docs https://github.com/cyli/logstash-output-slack:
slack {
url => "..."
channel => ["..."]
attachments => [ {"color" => "#36a64f"},{"title" => "This is a title %{title}"},{"author_name" => %{name}} ]
}
I received the message but attachment was not formatted properly:
the color was not set, %{title} and %{name} fields haven't been transformed to its values.
Could anybody clarify how to set the attachment format correctly?