# Logstash Grok Pattern Not Working(Regex)

**URL:** https://discuss.elastic.co/t/logstash-grok-pattern-not-working-regex/322199
**Category:** Logstash
**Created:** [December 30, 2022, 8:54am UTC](https://discuss.elastic.co/t/logstash-grok-pattern-not-working-regex/322199 "2022-12-30T08:54:34Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Prakash111](https://avatars.discourse-cdn.com/v4/letter/p/71e660/32.png) [@Prakash111](https://discuss.elastic.co/u/Prakash111)
#### Post date: [December 30, 2022, 10:07am UTC](https://discuss.elastic.co/t/logstash-grok-pattern-not-working-regex/322199/3 "2022-12-30T10:07:20Z")

</div>

Hi @Rios , Thanks for your reply.  
Let me explain my issue clearly,  
in 1st log line, "NewClient" is there  
in 2nd log line, "Get Compatible doc for event querySelect count(flag) from service1 where id = 'ABC-43862' and flag = 'true'" is there  
in 3nd log line "Before checking in cache" is there

so here if I use %{DATA:textData} or %{WORD:textData} it will consider only one word, but not all words, some times whole string may have spaces and few special chars too.

so it has to detect all words in that string .  
it should not disturb beside JSON data.

i hopp you understand .

---

_[View the full topic](https://discuss.elastic.co/t/logstash-grok-pattern-not-working-regex/322199)._
