How to add custom routing ,version or id when index document

i write a s custom beat.And i want to add custom id,routing,version when index document.Because i use join mapping type,and routing must be same with parent routing rather than id

Hi @luzhzhsoft and welcome :slight_smile:

elasticsearch output in libbeat doesn't currently support the join datatype.
You can set the ID of the documents using the event.SetID(string) method, and you can also add the fields, but there is no way to set the routing.

I was going to suggest you to create a new issue, but I see that you have already created one :slight_smile:
Linking it here for reference: https://github.com/elastic/beats/issues/8865

well,thank u :grinning:

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