# Logstash Grok

**URL:** https://discuss.elastic.co/t/logstash-grok/256682
**Category:** Logstash
**Created:** [November 25, 2020, 3:49pm UTC](https://discuss.elastic.co/t/logstash-grok/256682 "2020-11-25T15:49:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)
#### Post date: [November 25, 2020, 3:49pm UTC](https://discuss.elastic.co/t/logstash-grok/256682/1 "2020-11-25T15:49:48Z")

</div>

I need to start a grok at \<190\>  
I dont care about anything before that . What is the way to do this ?

\<13\>Nov 25 15:36:31 [servername.abc.com](http://servername.abc.com) LOGSTASH[-]: \<190\>Nov 25 07:36:31

---

<div class="post-metadata">

### Author: ![Wolfram\_Haussig](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wolfram_haussig/32/70528_2.png) [@Wolfram\_Haussig](https://discuss.elastic.co/u/Wolfram_Haussig)
#### Post date: [November 26, 2020, 5:43am UTC](https://discuss.elastic.co/t/logstash-grok/256682/2 "2020-11-26T05:43:46Z")

</div>

Hello Brian,

Yo can use the grok debugger in Kibanas Dev Tools to test it: Grok patterns do not necessarily need to start at the beginning of the message. Something like this will work:  
`<190>%{MONTH:month} %{MONTHDAY:day} %{TIME:time}`

Best regards  
Wolfram

---

<div class="post-metadata">

### Author: ![Elitlogik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elitlogik/32/78920_2.png) [@Elitlogik](https://discuss.elastic.co/u/Elitlogik)
#### Post date: [November 26, 2020, 1:06pm UTC](https://discuss.elastic.co/t/logstash-grok/256682/3 "2020-11-26T13:06:10Z")

</div>

Are you 100% sure \<190\> will be the PRI header for 100% of the log events? Never \<189\>?

---

<div class="post-metadata">

### Author: ![Elk\_huh](https://avatars.discourse-cdn.com/v4/letter/e/d26b3c/32.png) [@Elk\_huh](https://discuss.elastic.co/u/Elk_huh)
#### Post date: [December 1, 2020, 3:51pm UTC](https://discuss.elastic.co/t/logstash-grok/256682/4 "2020-12-01T15:51:45Z")

</div>

i ended up doing a %{GREEDYDATA:notneeded} %{SYSLOG5424PRI}

to start at \<190\>

---

<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: [December 29, 2020, 3:51pm UTC](https://discuss.elastic.co/t/logstash-grok/256682/5 "2020-12-29T15:51:59Z")

</div>

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