# How to extract a single word from keyword in order to put in cloud tags

**URL:** <https://discuss.elastic.co/t/how-to-extract-a-single-word-from-keyword-in-order-to-put-in-cloud-tags/163397>\
**Category:** Kibana\
**Created:** [January 8, 2019, 3:58pm UTC](https://discuss.elastic.co/t/how-to-extract-a-single-word-from-keyword-in-order-to-put-in-cloud-tags/163397 "2019-01-08T15:58:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesco\_De\_Nardi](https://avatars.discourse-cdn.com/v4/letter/f/c2a13f/32.png) [@Francesco\_De\_Nardi](https://discuss.elastic.co/u/Francesco_De_Nardi)\
**Post date:** [January 8, 2019, 3:58pm UTC](https://discuss.elastic.co/t/how-to-extract-a-single-word-from-keyword-in-order-to-put-in-cloud-tags/163397/1 "2019-01-08T15:58:39Z")

</div>

Do you think it's possible to extract a single word from keyword message?

for example I have this field

@message "type=USER\_AUTH msg=audit(154126859238.015:964219353): pid=272523 uid=0 auid=42943967295 ses=41"  
and i would to extract just this word "pid=272523 " and put in tag cloud

Thankls

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [January 9, 2019, 1:09am UTC](https://discuss.elastic.co/t/how-to-extract-a-single-word-from-keyword-in-order-to-put-in-cloud-tags/163397/2 "2019-01-09T01:09:08Z")

</div>

I would recommend breaking the message field out into individual fields during insertion to elasticsearch so your documents would look like

```auto
{
  pid: 272523,
  uid: 0,
  type: USER_AUTH
}

```

Then you can create a tag cloud aggregation on the `pid` 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:** [February 6, 2019, 1:09am UTC](https://discuss.elastic.co/t/how-to-extract-a-single-word-from-keyword-in-order-to-put-in-cloud-tags/163397/3 "2019-02-06T01:09:20Z")

</div>

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