# How to fetch substring from an input in logstash

**URL:** <https://discuss.elastic.co/t/how-to-fetch-substring-from-an-input-in-logstash/267035>\
**Category:** Logstash\
**Created:** [March 12, 2021, 5:23am UTC](https://discuss.elastic.co/t/how-to-fetch-substring-from-an-input-in-logstash/267035 "2021-03-12T05:23:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_sams](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_sams/32/78592_2.png) [@John\_sams](https://discuss.elastic.co/u/John_sams)\
**Post date:** [March 12, 2021, 5:23am UTC](https://discuss.elastic.co/t/how-to-fetch-substring-from-an-input-in-logstash/267035/1 "2021-03-12T05:23:16Z")

</div>

"tags":{  
"container\_image":"confluentinc/cp-zookeeper:5.4.0@sha256"  
}  
How can I fetch docker image tag that is 5.4.0 ? The above is an input log from telegraf.

---

<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:** [April 15, 2021, 12:01pm UTC](https://discuss.elastic.co/t/how-to-fetch-substring-from-an-input-in-logstash/267035/5 "2021-04-15T12:01:42Z")

</div>

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