# Obtaining Tags from Tags

**URL:** https://discuss.elastic.co/t/obtaining-tags-from-tags/31531
**Category:** Logstash
**Created:** [October 2, 2015, 8:34am UTC](https://discuss.elastic.co/t/obtaining-tags-from-tags/31531 "2015-10-02T08:34:43Z")
**Posts on this page:** 1
**Showing post:** 4

<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 2, 2015, 2:00pm UTC](https://discuss.elastic.co/t/obtaining-tags-from-tags/31531/4 "2015-10-02T14:00:19Z")

</div>

See the solution offered in this thread from yesterday:

> [@How to extract an Information from an attribute?](https://discuss.elastic.co/t/how-to-extract-an-information-from-an-attribute/31446):
>
> Hello elastic community, I have a problem with one of my Logstash parsing configurations. One customer want to use a country field. The information to fill the country field I can extract from the path, but I don't know exactly how to do this. All my tries weren't successfull to realize it. my Code look like: input { file { path =\> ["/was/log//1/mip/vn/1/server.log"] type =\> "serverlog" codec =\> multiline { pattern =\> "^%{TIME}" …

---

_[View the full topic](https://discuss.elastic.co/t/obtaining-tags-from-tags/31531)._
