# Painless in Script Ingest Pipeline : Get fields name

**URL:** https://discuss.elastic.co/t/painless-in-script-ingest-pipeline-get-fields-name/291341
**Category:** Elasticsearch
**Tags:** painless, ingest-pipeline
**Created:** [December 9, 2021, 3:44pm UTC](https://discuss.elastic.co/t/painless-in-script-ingest-pipeline-get-fields-name/291341 "2021-12-09T15:44:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GinkoLucas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginkolucas/32/107055_2.png) [@GinkoLucas](https://discuss.elastic.co/u/GinkoLucas)
#### Post date: [December 9, 2021, 3:44pm UTC](https://discuss.elastic.co/t/painless-in-script-ingest-pipeline-get-fields-name/291341/1 "2021-12-09T15:44:29Z")

</div>

Hi,  
I need to know the names of the fields entering the pipeline. Because I would like to place in a different index the documents with an extra field, or an unknown field.  
Is there a solution with script processor ?

---

<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 6, 2022, 3:44pm UTC](https://discuss.elastic.co/t/painless-in-script-ingest-pipeline-get-fields-name/291341/2 "2022-01-06T15:44:30Z")

</div>

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