# Rename or Change Available Fields

**URL:** <https://discuss.elastic.co/t/rename-or-change-available-fields/188035>\
**Category:** Logstash\
**Created:** [June 28, 2019, 11:10am UTC](https://discuss.elastic.co/t/rename-or-change-available-fields/188035 "2019-06-28T11:10:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wilks](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Wilks](https://discuss.elastic.co/u/Wilks)\
**Post date:** [June 28, 2019, 11:10am UTC](https://discuss.elastic.co/t/rename-or-change-available-fields/188035/1 "2019-06-28T11:10:29Z")

</div>

Hi,  
How do I rename an available field? So for example we pull logs from GCP and use a json filter before outputting it to elasticsearch. The message field shows an event named "bytes\_sent" but in Kibana under Available Fields it shows as jsonPayload.bytes\_sent. Is there a way to strip the jsaonPayload. so it just shows as bytes\_sent? I have tried rename and mutate filters within logstash but they dont appear to do anything.....provided this is even the right thing to do.

![08%20AM](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f533a08d60c78ac6129e103e0122977cdc7fa26f.png) ![43%20AM](https://us1.discourse-cdn.com/elastic/original/3X/6/4/643c0e6b2ef139bb2c7a9bbf1c1dfc76eaf5cab5.png)

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 28, 2019, 1:41pm UTC](https://discuss.elastic.co/t/rename-or-change-available-fields/188035/2 "2019-06-28T13:41:09Z")

</div>

Use a [mutate](https://www.elastic.co/guide/en/logstash/current/plugins-filters-mutate.html#plugins-filters-mutate-rename) filter. Perhaps you are confusing jsonPayload.bytes\_sent (a field with a period in its name) with [jsonPayload][bytes\_sent] (a field within the jsonPayload object). The two appear the same in Kibana, but you need to use different names for them in logstash.

---

<div class="post-metadata">

**Author:** ![Wilks](https://avatars.discourse-cdn.com/v4/letter/w/f475e1/32.png) [@Wilks](https://discuss.elastic.co/u/Wilks)\
**Post date:** [June 28, 2019, 2:50pm UTC](https://discuss.elastic.co/t/rename-or-change-available-fields/188035/3 "2019-06-28T14:50:38Z")

</div>

Thanks....worked!!!

---

<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 26, 2019, 2:53pm UTC](https://discuss.elastic.co/t/rename-or-change-available-fields/188035/4 "2019-07-26T14:53:27Z")

</div>

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