# How can i replace all values in a table with null using logstash

**URL:** <https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654>\
**Category:** Logstash\
**Created:** [December 12, 2016, 12:57am UTC](https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654 "2016-12-12T00:57:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [December 12, 2016, 12:57am UTC](https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654/1 "2016-12-12T00:57:18Z")

</div>

Hi,

Lets say i have a table A and it has 5 fields and 100 rows. I need to put a filter on the whole records and replace null values with 'no data available'.

How can i do this on the whole table?

Thanks,  
Sai

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 12, 2016, 3:34am UTC](https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654/2 "2016-12-12T03:34:01Z")

</div>

Where is the table?

---

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [December 12, 2016, 6:51pm UTC](https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654/3 "2016-12-12T18:51:44Z")

</div>

i'm importing data from sql using lostash

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 12, 2016, 11:18pm UTC](https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654/4 "2016-12-12T23:18:00Z")

</div>

Try the idea here [How to write NULL value for a field](https://discuss.elastic.co/t/how-to-write-null-value-for-a-field/53885)

---

<div class="post-metadata">

**Author:** ![saisn](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@saisn](https://discuss.elastic.co/u/saisn)\
**Post date:** [December 13, 2016, 4:20pm UTC](https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654/5 "2016-12-13T16:20:50Z")

</div>

But the given link is restricted to only one field. Is there any configuration that can check on all fields of the table!

Thanks

---

<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:** [January 10, 2017, 4:20pm UTC](https://discuss.elastic.co/t/how-can-i-replace-all-values-in-a-table-with-null-using-logstash/68654/6 "2017-01-10T16:20:56Z")

</div>

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