Not able to generate fields.yml files

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 :-

{
    "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 }}"
        }
    }]
}

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