# Logstash-Slack plugin attachment format issue

**URL:** <https://discuss.elastic.co/t/logstash-slack-plugin-attachment-format-issue/90372>\
**Category:** Logstash\
**Created:** [June 22, 2017, 12:45am UTC](https://discuss.elastic.co/t/logstash-slack-plugin-attachment-format-issue/90372 "2017-06-22T00:45:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob04](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Bob04](https://discuss.elastic.co/u/Bob04)\
**Post date:** [June 22, 2017, 12:45am UTC](https://discuss.elastic.co/t/logstash-slack-plugin-attachment-format-issue/90372/1 "2017-06-22T00:45:00Z")

</div>

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:](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?

---

<div class="post-metadata">

**Author:** ![Bob04](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@Bob04](https://discuss.elastic.co/u/Bob04)\
**Post date:** [June 22, 2017, 8:40pm UTC](https://discuss.elastic.co/t/logstash-slack-plugin-attachment-format-issue/90372/2 "2017-06-22T20:40:34Z")

</div>

Is there any clear documentation for Logstash-slack plugin?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 20, 2017, 8:40pm UTC](https://discuss.elastic.co/t/logstash-slack-plugin-attachment-format-issue/90372/3 "2017-07-20T20:40:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
