# Custom pattern from grokdebug

**URL:** <https://community.influxdata.com/t/custom-pattern-from-grokdebug/13943>\
**Category:** Telegraf\
**Tags:** influxdb, regex\
**Created:** [April 21, 2020, 4:03am UTC](https://community.influxdata.com/t/custom-pattern-from-grokdebug/13943 "2020-04-21T04:03:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlsam](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jlsam/32/4771_2.png) [@jlsam](https://community.influxdata.com/u/jlsam)\
**Post date:** [April 21, 2020, 4:03am UTC](https://community.influxdata.com/t/custom-pattern-from-grokdebug/13943/1 "2020-04-21T04:03:56Z")

</div>

I created a pattern in [https://grokdebug.herokuapp.com/](https://grokdebug.herokuapp.com/) that uses a custom pattern  
`(?<offer>haven't)`.

To make this work in Telegraf, do I need to create a new pattern in `grok_custom_patterns`?  
Something like `OFFER (?haven't)`

Or can I just use the expression like this, as it is working in grokdebug?  
`%{TIMESTAMP_ISO8601:timestamp:drop} something (?<offer>haven't) something else %{BASE16NUM:hex}`
