New custom beat is not sending a template mapping

I am creating a custom beat, and I have things such as the follow in _meta/fields.yml

    - name: port_22_out
      type: integer

When I run the built beat, it is not sending a mapping, as evidenced by the following mapping in the index in Kibana:

{
  "mapping": {}
}

There is not a json template file in here anywhere - what am I missing?

Have you run make update, so the appropriate include/fields.go is generated?

I have! My current workaround is to forcibly overwrite using fields.yml, but that feels really gross.

What do you mean by forcibly overwrite using fields.yml?

If I set "setup.template.overwrite: true" and specify the freshly generated fields.yml, it works fine.

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