# Lostash grok parse restapi url issue

**URL:** <https://discuss.elastic.co/t/lostash-grok-parse-restapi-url-issue/92264>\
**Category:** Logstash\
**Created:** [July 7, 2017, 12:22pm UTC](https://discuss.elastic.co/t/lostash-grok-parse-restapi-url-issue/92264 "2017-07-07T12:22:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemant25](https://avatars.discourse-cdn.com/v4/letter/h/b5e925/32.png) [@hemant25](https://discuss.elastic.co/u/hemant25)\
**Post date:** [July 7, 2017, 12:22pm UTC](https://discuss.elastic.co/t/lostash-grok-parse-restapi-url-issue/92264/1 "2017-07-07T12:22:23Z")

</div>

Hi ,

I am trying to parse the following url

1. [http://localhost:8001/restapi/user:id=ca00dfd1ccd5f95af329742a7600d8f0/org:id=3967844767629143/test](http://localhost:8001/restapi/user:id=ca00dfd1ccd5f95af329742a7600d8f0/org:id=3967844767629143/test)

from the above url i want to parse the userid and orgid can anyone help me on this.

I have tried lot on this but not able to fix

---

<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:** [July 11, 2017, 5:16pm UTC](https://discuss.elastic.co/t/lostash-grok-parse-restapi-url-issue/92264/2 "2017-07-11T17:16:01Z")

</div>

The grok constructor web site can be of great help when constructing grok expressions.

---

<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:** [August 8, 2017, 5:16pm UTC](https://discuss.elastic.co/t/lostash-grok-parse-restapi-url-issue/92264/3 "2017-08-08T17:16:15Z")

</div>

Closed on August 8, 2017, 5:16pm UTC

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