# Logstash extract multiple regex

**URL:** https://discuss.elastic.co/t/logstash-extract-multiple-regex/79039
**Category:** Logstash
**Created:** [March 17, 2017, 2:14pm UTC](https://discuss.elastic.co/t/logstash-extract-multiple-regex/79039 "2017-03-17T14:14:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ollm4c](https://avatars.discourse-cdn.com/v4/letter/o/ea5d25/32.png) [@Ollm4c](https://discuss.elastic.co/u/Ollm4c)
#### Post date: [March 17, 2017, 2:14pm UTC](https://discuss.elastic.co/t/logstash-extract-multiple-regex/79039/1 "2017-03-17T14:14:33Z")

</div>

Hi to everyone, I need to extract some regex (I don't know how much) in a log line such as the following  
"2017-01-01 2:04:08 - DEBUG --\> SELECT like "%aaaaa%" )) and like "%bbbb%" )) GROUP BY order by asc LIMIT "

I need to extract "aaaaa" and "bbbb".

Could you help me?

Thanks in advance

---

<div class="post-metadata">

### Author: ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)
#### Post date: [March 18, 2017, 1:47pm UTC](https://discuss.elastic.co/t/logstash-extract-multiple-regex/79039/2 "2017-03-18T13:47:48Z")

</div>

I would start by reffering you to [https://grokdebug.herokuapp.com/](https://grokdebug.herokuapp.com/) to test your queries

and your probably looking at a regex of

%{DATE:logdata} ${TIME:logtime} - DEBUG -\> Select like "%%{WORD:field1}"

---

<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: [April 15, 2017, 1:47pm UTC](https://discuss.elastic.co/t/logstash-extract-multiple-regex/79039/3 "2017-04-15T13:47:51Z")

</div>

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