Accessing JSON map from the plugins #3972
-
Hi, I have forward source plugin that reads JSON logs from fluent-bit and stores them in the Elasticsearch. I want to enhance this to select specific Elasticsearch index based on some field value in the JSON log. I am not able to find a way to query the JSON and use it as Elasticsearch index name. Any inputs will be really appreciated. Input JSON:
Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Was able to this using rewrite_tag_filter and the new tag I used as the index name of the Elasticsearch. Please do share if anyone has better more efficient way. Thanks |
Beta Was this translation helpful? Give feedback.
Was able to this using rewrite_tag_filter and the new tag I used as the index name of the Elasticsearch. Please do share if anyone has better more efficient way.
Thanks