# Using jdbc\_static to iterate over all event fields

**URL:** <https://discuss.elastic.co/t/using-jdbc-static-to-iterate-over-all-event-fields/147995>\
**Category:** Logstash\
**Created:** [September 10, 2018, 4:48pm UTC](https://discuss.elastic.co/t/using-jdbc-static-to-iterate-over-all-event-fields/147995 "2018-09-10T16:48:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![manwithoutsleep](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@manwithoutsleep](https://discuss.elastic.co/u/manwithoutsleep)\
**Post date:** [September 10, 2018, 4:48pm UTC](https://discuss.elastic.co/t/using-jdbc-static-to-iterate-over-all-event-fields/147995/1 "2018-09-10T16:48:59Z")

</div>

Is it possible to use jdbc\_static to iterate over all fields of the event and replace the field names, perhaps with the mutate filter? I have jdbc\_static set up correctly, but I'm having trouble with the iteration over all event fields. It seems to insist that I know in advance the names of each event field, but I want to iterate over every field in the event and rename that field using the lookup in the table loaded by jdbc\_static.

Specifically, in the local\_lookups section of jdbc\_static, how to I set the parameters to something other than the value of a known field name?

Alternatively, is there a different way to rename all the fields of an event based on a lookup table in a database, without modifying the field values?

Thanks -  
Brad

---

<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:** [October 8, 2018, 4:49pm UTC](https://discuss.elastic.co/t/using-jdbc-static-to-iterate-over-all-event-fields/147995/2 "2018-10-08T16:49:00Z")

</div>

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