# Gsub processor to replace null values

**URL:** <https://discuss.elastic.co/t/gsub-processor-to-replace-null-values/105584>\
**Category:** Elasticsearch\
**Created:** [October 27, 2017, 2:53pm UTC](https://discuss.elastic.co/t/gsub-processor-to-replace-null-values/105584 "2017-10-27T14:53:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pratiksha\_Tewary](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@Pratiksha\_Tewary](https://discuss.elastic.co/u/Pratiksha_Tewary)\
**Post date:** [October 27, 2017, 2:53pm UTC](https://discuss.elastic.co/t/gsub-processor-to-replace-null-values/105584/1 "2017-10-27T14:53:22Z")

</div>

Hi,  
I was wondering if there was a way to substitute null values with other string values using gsub processor in ingest node pipelines.

Thanks.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 27, 2017, 3:43pm UTC](https://discuss.elastic.co/t/gsub-processor-to-replace-null-values/105584/2 "2017-10-27T15:43:54Z")

</div>

there is actually no need to do this in a processor, you could do this in the mapping see [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/null-value.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/null-value.html)

--Alex

---

<div class="post-metadata">

**Author:** ![Pratiksha\_Tewary](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@Pratiksha\_Tewary](https://discuss.elastic.co/u/Pratiksha_Tewary)\
**Post date:** [October 27, 2017, 7:04pm UTC](https://discuss.elastic.co/t/gsub-processor-to-replace-null-values/105584/3 "2017-10-27T19:04:15Z")

</div>

Thank you! This solves a lot of things.

---

<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:** [November 24, 2017, 7:04pm UTC](https://discuss.elastic.co/t/gsub-processor-to-replace-null-values/105584/4 "2017-11-24T19:04:17Z")

</div>

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