# Can we define tags using \`logstash-output-statsd\`?

**URL:** <https://discuss.elastic.co/t/can-we-define-tags-using-logstash-output-statsd/180928>\
**Category:** Logstash\
**Created:** [May 14, 2019, 6:38am UTC](https://discuss.elastic.co/t/can-we-define-tags-using-logstash-output-statsd/180928 "2019-05-14T06:38:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvanZhong](https://avatars.discourse-cdn.com/v4/letter/y/47e85d/32.png) [@YvanZhong](https://discuss.elastic.co/u/YvanZhong)\
**Post date:** [May 14, 2019, 6:38am UTC](https://discuss.elastic.co/t/can-we-define-tags-using-logstash-output-statsd/180928/1 "2019-05-14T06:38:31Z")

</div>

We want to define Datadog tags in `statsd` output plugin.  
Just like described in this doc: [https://docs.datadoghq.com/tagging/](https://docs.datadoghq.com/tagging/)  
Can we define a tag such as `status:200`

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 14, 2019, 1:08pm UTC](https://discuss.elastic.co/t/can-we-define-tags-using-logstash-output-statsd/180928/2 "2019-05-14T13:08:17Z")

</div>

In logstash tags do not have values. Fields have values. An event can have a field called tags which is an array of values.

You can use a mutate filter to [add\_field](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-add_field) or [add\_tag](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-add_tag).

---

<div class="post-metadata">

**Author:** ![YvanZhong](https://avatars.discourse-cdn.com/v4/letter/y/47e85d/32.png) [@YvanZhong](https://discuss.elastic.co/u/YvanZhong)\
**Post date:** [May 14, 2019, 1:54pm UTC](https://discuss.elastic.co/t/can-we-define-tags-using-logstash-output-statsd/180928/3 "2019-05-14T13:54:52Z")

</div>

Thanks for your reply. I want to use this output plugin: [https://www.elastic.co/guide/en/logstash/current/plugins-outputs-statsd.html](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-statsd.html)  
It send data to Datadog eventually. So we want to define tags in Datadog.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 14, 2019, 2:07pm UTC](https://discuss.elastic.co/t/can-we-define-tags-using-logstash-output-statsd/180928/4 "2019-05-14T14:07:52Z")

</div>

That's fine, I am just saying that they are not called tags in logstash.

---

<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:** [June 11, 2019, 2:07pm UTC](https://discuss.elastic.co/t/can-we-define-tags-using-logstash-output-statsd/180928/5 "2019-06-11T14:07:58Z")

</div>

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