# Need to remove first 10 characters using grok

**URL:** <https://discuss.elastic.co/t/need-to-remove-first-10-characters-using-grok/306864>\
**Category:** Elasticsearch\
**Created:** [June 10, 2022, 9:43am UTC](https://discuss.elastic.co/t/need-to-remove-first-10-characters-using-grok/306864 "2022-06-10T09:43:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giuse\_Esse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/giuse_esse/32/106872_2.png) [@Giuse\_Esse](https://discuss.elastic.co/u/Giuse_Esse)\
**Post date:** [June 10, 2022, 9:43am UTC](https://discuss.elastic.co/t/need-to-remove-first-10-characters-using-grok/306864/1 "2022-06-10T09:43:06Z")

</div>

Hello i need to remove first 10 char in the grok, I can get first 10 but not exclude...

```auto
   grok {
                match => {
                    
                       "message" => "(?<message>^.{-10})"
                }

        }

```

---

<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:** [July 8, 2022, 9:43am UTC](https://discuss.elastic.co/t/need-to-remove-first-10-characters-using-grok/306864/2 "2022-07-08T09:43:36Z")

</div>

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