# Posting @mention to slack channel

**URL:** <https://discuss.elastic.co/t/posting-mention-to-slack-channel/41079>\
**Category:** Logstash\
**Created:** [February 5, 2016, 3:38pm UTC](https://discuss.elastic.co/t/posting-mention-to-slack-channel/41079 "2016-02-05T15:38:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bharath\_meka](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bharath\_meka](https://discuss.elastic.co/u/bharath_meka)\
**Post date:** [February 5, 2016, 3:38pm UTC](https://discuss.elastic.co/t/posting-mention-to-slack-channel/41079/1 "2016-02-05T15:38:30Z")

</div>

Hi,

We have a custom output slack plugin which post some alert messages to a slack channel. I would like to prefix the alert message with a "@userid" so that the slack sends an email to the user that he is mentioned in the post. But as of now, if I prefix it with, say "@bharath_meka" , it is not resolving at the slack end as a "mention" but is posted as a static text.

Is there something to do at slack end or can I handle this in my plugin?

Regards,  
Bharath

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 6, 2016, 8:24pm UTC](https://discuss.elastic.co/t/posting-mention-to-slack-channel/41079/2 "2016-02-06T20:24:41Z")

</div>

I suppose you'll have to adhere to the [Slack API's conventions for linking to users](https://api.slack.com/docs/formatting#linking_to_channels_and_users), i.e. say something like `<@6AF9884E8|some-user>` instead of `@some-user`.

---

<div class="post-metadata">

**Author:** ![bharath\_meka](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bharath\_meka](https://discuss.elastic.co/u/bharath_meka)\
**Post date:** [February 7, 2016, 6:37am UTC](https://discuss.elastic.co/t/posting-mention-to-slack-channel/41079/3 "2016-02-07T06:37:17Z")

</div>

Thanks Magnus. That did the trick.

Regards,  
Bharath

---

<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 6, 2017, 5:12am UTC](https://discuss.elastic.co/t/posting-mention-to-slack-channel/41079/4 "2017-07-06T05:12:49Z")

</div>

Closed on July 6, 2017, 5:12am UTC


