# Extracting response code from the log message?

**URL:** <https://discuss.elastic.co/t/extracting-response-code-from-the-log-message/156254>\
**Category:** Logstash\
**Created:** [November 12, 2018, 8:36am UTC](https://discuss.elastic.co/t/extracting-response-code-from-the-log-message/156254 "2018-11-12T08:36:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roly](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@roly](https://discuss.elastic.co/u/roly)\
**Post date:** [November 12, 2018, 8:36am UTC](https://discuss.elastic.co/t/extracting-response-code-from-the-log-message/156254/1 "2018-11-12T08:36:21Z")

</div>

78731233 \* Client response received on thread ap-578543 - POST /batch/newitem/listing  
78731233 \< 200

how can i extract response code from the above using grok?

kindly suggest!!

---

<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 10, 2018, 8:36am UTC](https://discuss.elastic.co/t/extracting-response-code-from-the-log-message/156254/2 "2018-12-10T08:36:22Z")

</div>

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