# Simple problem with grok

**URL:** https://discuss.elastic.co/t/simple-problem-with-grok/78117
**Category:** Logstash
**Created:** [March 10, 2017, 9:21am UTC](https://discuss.elastic.co/t/simple-problem-with-grok/78117 "2017-03-10T09:21:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![parrot](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@parrot](https://discuss.elastic.co/u/parrot)
#### Post date: [March 10, 2017, 9:21am UTC](https://discuss.elastic.co/t/simple-problem-with-grok/78117/1 "2017-03-10T09:21:35Z")

</div>

Hi, this is my conf file:

```
input { stdin { } }

 filter {
  grok {
    patterns_dir => ["./patterns"]
    match => { "message" => "%{NOTSPACE:timestamp}%{SPACE}%{WORD:vendor}%{NOTSPACE}%{SPACE}%{TIMESTAMP_ISO8601:localEventTime}%{SPACE}%{NOTSPACE}%{SPACE}%{WORD}%{SPACE}%{NOTSPACE}%{SPACE}%{NOTSPACE}%{IPV4:userIP}%{NOTSPACE}%{SPACE}%{USER:username}\(%{WORD:group}\)" }
  }
}

output {
  stdout { codec => rubydebug }
}

```

**I need right after the last tag to skip(or delete this char:"[" and right after that this char:"]", how can I do it?  
as you can see I used "" to avoid the "(" and ")" but it doesn't works with the "[" , "]"**

---

<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: [March 13, 2017, 8:39am UTC](https://discuss.elastic.co/t/simple-problem-with-grok/78117/2 "2017-03-13T08:39:36Z")

</div>

Please give an example of what you're trying to parse.

---

<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 10, 2017, 8:39am UTC](https://discuss.elastic.co/t/simple-problem-with-grok/78117/3 "2017-04-10T08:39:39Z")

</div>

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