-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
out_es: Add target_index variable using record accessor syntax. #7716
base: master
Are you sure you want to change the base?
Conversation
6c19d6e
to
8d6a675
Compare
I think for Opensearch, |
I considered that option too. I'm open to change to RA on Just confirm me if you prefer that option and I'll make the changes. |
I've updated the PR to use the same approach as out_opensearch plugin, it is, detect if Updated gist . |
Anybody looking at this? I'm also impacted and seems as though opensearch as an alternative broke with the API changes in recent release, so I can't use that as a bandaid. 👍 |
What happened with the commits on this PR? Whatever happened last week, where it added a bunch of commits from master, should probably be resolved. Only the 3 |
fd14fe2
to
8a6a409
Compare
I've just fixed the mess with commits from master. I'm sorry for the noise introduced in the PR and for the inconveniences to other committers. |
Getting this segfault when using this kind of output using your branch + master merged
Any ideas if something you've changed broke this? |
Hi @DandyDeveloper , |
Any ideas on when this might get merged in? |
@edsiper @leonardo-albertovich Can we get some eyes on this please? |
@DandyDeveloper I came up with next idea, maybe it will be useful for you. It's
So fluentbit sends everything in |
@ajax-bychenok-y Thanks for the suggestion! This could work in theory actually, I'll have a crack. But, I'm a little shocked this PR has been pending for so long... It's a pretty simple addition. |
Add target_index variable for rendering ES index name using record accessor syntax without extra bytes (i.e.: no time component on index name). Signed-off-by: Victor Cabezas <[email protected]>
Signed-off-by: Victor Cabezas <[email protected]>
Signed-off-by: Victor Cabezas <[email protected]>
1573ce5
to
55be71f
Compare
Hi @edsiper or any other maintainer. Are these changes being considered to be merged? We would like to start upgrading our ES clusters to v8 and as @DandyDeveloper pointed out these changes are needed to have index RA behavior on ES v8 clusters. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Anyone alive |
Is anyone else reviewing or keeping track of this commit? |
Hi @cosmo0920 @edsiper , is there anything else needed to do in this pr before it can be merged? |
(char *) tag, tag_len, | ||
map, NULL); | ||
if (v) { | ||
len = flb_sds_len(v); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
either dynamically allocating the index so it is not truncated or returning a warning or error might be better idea. The limit should also be checked against the actual size of index_value
, (sizeof()-1), instead of a hardcoded value.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Add
target_index
variable for rendering ES index name using record accessor syntax. This allows to define ES index name based on record accessor, enabling to use record field values as destination ES index.It differs from
logstash_prefix_key
as no time component is added to index name, so ES data streams can be used as target index easily.Tests output and other information at https://gist.github.com/Wiston999/c7d3ff5389f64fdf1113146090ab1aa1.
Addresses #2514
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
fluent/fluent-bit-docs#1163
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.