Adding query parameters to filebeat?

Hello,

I'm adding custom routing to improve performance and the documentation for custom routing:_routing field | Elasticsearch Guide [7.13] | Elastic

The documentation requires the routing value whenever indexing or updating documents. Is there a way to specify the routing value parameters in filebeat? I'm a little unsure how to go about ensuring that filebeat can index documents that require a routing value.

Hi!

How about adding this field to the events using Add fields | Filebeat Reference [7.13] | Elastic?

C.

Hello,

I don't think add field is what I'm looking for.

To set a route I have to add a parameter like:

PUT my-index-000001/_doc/1?routing=user1&refresh=true

What I'm asking is if there is an ability to set the params in filebeat. You can set the index, the pipeline, etc, but I don't see there is a way for me to add params like the routing ?routing=user1

Thanks

I see, I was assuming that adding _routing field into the event could do the trick...Unfortunately this option is not supported as a configuration setting. Feel free to file a Github issue for this!

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