# Parsing two information with one filter

**URL:** <https://discuss.elastic.co/t/parsing-two-information-with-one-filter/93516>\
**Category:** Logstash\
**Created:** [July 18, 2017, 7:30am UTC](https://discuss.elastic.co/t/parsing-two-information-with-one-filter/93516 "2017-07-18T07:30:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam67000](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Sam67000](https://discuss.elastic.co/u/Sam67000)\
**Post date:** [July 18, 2017, 7:30am UTC](https://discuss.elastic.co/t/parsing-two-information-with-one-filter/93516/1 "2017-07-18T07:30:41Z")

</div>

Hello everyone,

I need your help to parse with grok filter two information in two different variable with one filter.  
The log line is as follows :

`From: DNS_dns[2060]/15885`

the first information is : DNS\_dns and the second is 15885. Is that possible ?

I try this : `match => {"message" => "From: %{WORD:Variable1"}`  
But it just parse me the first information.

Thank you for the help !

---

<div class="post-metadata">

**Author:** ![pemontto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pemontto/32/3908_2.png) [@pemontto](https://discuss.elastic.co/u/pemontto)\
**Post date:** [July 18, 2017, 8:21am UTC](https://discuss.elastic.co/t/parsing-two-information-with-one-filter/93516/2 "2017-07-18T08:21:21Z")

</div>

Try using [https://grokdebug.herokuapp.com/](https://grokdebug.herokuapp.com/) it's incredibly helpful.

This pattern should do what you want  
`From: %{WORD:Variable1}%{GREEDYDATA}/%{INT:Variable2}`

---

<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:** [August 15, 2017, 8:21am UTC](https://discuss.elastic.co/t/parsing-two-information-with-one-filter/93516/3 "2017-08-15T08:21:41Z")

</div>

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