# Extracting a portion of a field in kibana

**URL:** https://discuss.elastic.co/t/extracting-a-portion-of-a-field-in-kibana/60866
**Category:** Kibana
**Created:** [September 19, 2016, 10:08am UTC](https://discuss.elastic.co/t/extracting-a-portion-of-a-field-in-kibana/60866 "2016-09-19T10:08:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sabyasachi\_mallick](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sabyasachi\_mallick](https://discuss.elastic.co/u/sabyasachi_mallick)
#### Post date: [September 19, 2016, 10:08am UTC](https://discuss.elastic.co/t/extracting-a-portion-of-a-field-in-kibana/60866/1 "2016-09-19T10:08:03Z")

</div>

i am visualizing syslogs in kibana. i am getting messages under syslog\_message field.I want to visualize the count of a portion of message . e.g in below line i wan to count total number of cdp/interface portion..there may be something different in that [portion.So](http://portion.So) i want to visualize count of that portion.But i dont know what will appear over there thats why i cant use filtering.  
syslog\_message:[cdp/interface.ERR] - {- -} Error writing CDP frame

is there any way to do that in kibana?

---

<div class="post-metadata">

### Author: ![jbudz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jbudz/32/45922_2.png) [@jbudz](https://discuss.elastic.co/u/jbudz)
#### Post date: [September 19, 2016, 2:56pm UTC](https://discuss.elastic.co/t/extracting-a-portion-of-a-field-in-kibana/60866/2 "2016-09-19T14:56:08Z")

</div>

If the whole syslog entry is in one field it'll be difficult to perform meaningful analysis in Kibana. Kibana doesn't have a way to convert this data, although you may be to search over it. Before ingesting into elasticsearch I would recommend breaking the data up into individual fields using something like logstash.

---

<div class="post-metadata">

### Author: ![sabyasachi\_mallick](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sabyasachi\_mallick](https://discuss.elastic.co/u/sabyasachi_mallick)
#### Post date: [September 20, 2016, 9:09am UTC](https://discuss.elastic.co/t/extracting-a-portion-of-a-field-in-kibana/60866/3 "2016-09-20T09:09:39Z")

</div>

yea i am using logstash. i am also indexing the whole data. My problem is i want to fetch a portion of indexed field.  
like i want to replicate the function of re.group(0) of python regular expression. i want the count of that part , which i don't what ll appear in that position.

---

<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 6, 2017, 1:38pm UTC](https://discuss.elastic.co/t/extracting-a-portion-of-a-field-in-kibana/60866/4 "2017-07-06T13:38:41Z")

</div>


