# Tags removed in 2.0.0.beta2?

**URL:** <https://discuss.elastic.co/t/tags-removed-in-2-0-0-beta2/32281>\
**Category:** Logstash\
**Created:** [October 15, 2015, 2:08pm UTC](https://discuss.elastic.co/t/tags-removed-in-2-0-0-beta2/32281 "2015-10-15T14:08:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CraigFoote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craigfoote/32/4571_2.png) [@CraigFoote](https://discuss.elastic.co/u/CraigFoote)\
**Post date:** [October 15, 2015, 2:08pm UTC](https://discuss.elastic.co/t/tags-removed-in-2-0-0-beta2/32281/1 "2015-10-15T14:08:52Z")

</div>

Am I reading this right, [Logstash 2.0.0 beta2 released | Elastic Blog](https://www.elastic.co/blog/logstash-2-0-0-beta2-released)?

> Until the introduction of conditionals, the only way to selectively apply filters and outputs to some events was to set the type, tags and exclude\_tags options. These configuration options have been deprecated for some time now and this release either removes them, or they are marked with the new obsolete tag. You will not be able to use them in your configuration file without a resulting error.

I make heavy use of tags to coordinate input, filter and output blocks and index names in config files. Am I going to have to rewrite them all? We run Logstash with a folder containing numerous configs - multiple inputs each with a tag identifying the stream - then multiple outputs naming the index to create based on those tags. I'm not sure how to do that with just conditional... Help!

---

<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:** [October 15, 2015, 2:12pm UTC](https://discuss.elastic.co/t/tags-removed-in-2-0-0-beta2/32281/2 "2015-10-15T14:12:31Z")

</div>

Tags aren't being deprecated completely (and even if they were tags are not really different from any other field), just the mechanism for selecting filters and output via the `type`, `tags`, and `exclude_tags` options, i.e. instead of

```
filter {
  foo {
    ...
    type => "blah"
  }
}

```

you need this:

```
filter {
  if [type] == "blah" {
    foo {
      ...
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![CraigFoote](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craigfoote/32/4571_2.png) [@CraigFoote](https://discuss.elastic.co/u/CraigFoote)\
**Post date:** [October 15, 2015, 2:29pm UTC](https://discuss.elastic.co/t/tags-removed-in-2-0-0-beta2/32281/3 "2015-10-15T14:29:03Z")

</div>

Whew! Thanks Magnus.

---

<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:26am UTC](https://discuss.elastic.co/t/tags-removed-in-2-0-0-beta2/32281/4 "2017-07-06T05:26:25Z")

</div>

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


