# Not able to generate fields.yml files

**URL:** <https://discuss.elastic.co/t/not-able-to-generate-fields-yml-files/287970>\
**Category:** Beats\
**Tags:** beats-module, beats-development\
**Created:** [October 29, 2021, 5:32am UTC](https://discuss.elastic.co/t/not-able-to-generate-fields-yml-files/287970 "2021-10-29T05:32:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paurav\_Thakkar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paurav_thakkar/32/78190_2.png) [@Paurav\_Thakkar](https://discuss.elastic.co/u/Paurav_Thakkar)\
**Post date:** [October 29, 2021, 5:32am UTC](https://discuss.elastic.co/t/not-able-to-generate-fields-yml-files/287970/1 "2021-10-29T05:32:16Z")

</div>

Hi, I am trying to create a new custom module and I have created a input file that is taking input from an api in json format and in the pipeline.json file I have added the processors that I think are necessary. But when I am trying to generate fields.yml file I am getting an error. the error is :-  
Error: cannot generate fields.yml: No patterns in pipeline  
make: \*\*\* [create-fields] Error 1  
my pipeline.json file is :-

```auto
{
    "processors": [
        {
            "set": {
                "field": "@timstamp",
                "value": "{{ time }}"
            }
        },
        {
            "set": {
                "field": "event.id",
                "value": "{{ eventId }}"
            }
        },
        {
            "set": {
                "field": "event.provider",
                "value": "{{ eventProvider }}"
            }
        },
        {
            "set": {
                "field": "organization.id",
                "value": "{{ organizationId }}"
            }
        },
        {
            "set": {
                "field": "source.ip",
                "value": "{{ sourceIp }}"
            }
        },
        {
            "set": {
                "field": "source.user.name",
                "value": "{{ sourceUserName }}"
            }
        },
        {
            "set": {
                "field": "source.user.id",
                "value": "{{ sourceUserName }}"
            }
        }
    ],
    "on_failure" : [{
        "set" : {
            "field" : "error.message",
            "value" : "{{ _ingest.on_failure_message }}"
        }
    }]
}

```

---

<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 26, 2021, 7:32am UTC](https://discuss.elastic.co/t/not-able-to-generate-fields-yml-files/287970/2 "2021-11-26T07:32:43Z")

</div>

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