Can you match an index template based on a doc's field value?

It appears docs being indexed can hit a specific Index Template based on an "index pattern" that matches a specific naming pattern of an index. I was wondering if there was a way to have a doc hit a specific Index Template based on a field's value from the _source.

No, there is not. If that was possible it could cause mapping conflicts, which are not allowed. You can send documents to different indices based on field vslues snd apply different templates that way yhough.

1 Like

Thanks so much for the response Christian. That helps explain why I couldn't find a way to do it. I'll make things easier on myself and setup beats locally to collect the different data and send it to the appropriate data steam using its index naming scheme.

I appreciate the help.

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