# How to extract specific keyword from Logs in logstash

**URL:** <https://discuss.elastic.co/t/how-to-extract-specific-keyword-from-logs-in-logstash/238802>\
**Category:** Logstash\
**Created:** [June 26, 2020, 7:14am UTC](https://discuss.elastic.co/t/how-to-extract-specific-keyword-from-logs-in-logstash/238802 "2020-06-26T07:14:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magesh/32/57923_2.png) [@Magesh](https://discuss.elastic.co/u/Magesh)\
**Post date:** [June 26, 2020, 7:14am UTC](https://discuss.elastic.co/t/how-to-extract-specific-keyword-from-logs-in-logstash/238802/1 "2020-06-26T07:14:52Z")

</div>

Hi  
I would like to extract specific keyword from Logs and store it in another variable using logstash

pls find below the logs

6/26 00:33:04 -INFOS- {1:2} Decision PASSED\_WITH\_RESV applied on 1 message(s)  
api.service#001(20440) 2020/06/26 00:33:04 -INFOS- {1:2} Read 1 message(s) ((1)"2"/(16)"PASSED\_WITH\_RESV"/ROOT/TS/unknown) from http-server(5419s)[api.receive.service.request]  
cmapi.receive.service#001(20440) 2020/0

I want to extract only the PASSED\_WITH\_RESV"/ROOT/TS/unknown field and store it in another field

---

<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 24, 2020, 7:15am UTC](https://discuss.elastic.co/t/how-to-extract-specific-keyword-from-logs-in-logstash/238802/2 "2020-07-24T07:15:06Z")

</div>

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