Skip to content
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

Support negative index for tag when extract placeholders #1908

Merged
merged 1 commit into from
Mar 26, 2018

Conversation

okkez
Copy link
Contributor

@okkez okkez commented Mar 23, 2018

For example,

tag is fluentd.test.output

${tag[-1]} is extracted to output
${tag[-2]} is extracted to test

It is useful to extract last element of variable length tag.

For example,

tag is `fluentd.test.output`

`${tag[-1]}` is extracted to `output`
`${tag[-2]}` is extracted to `test`

It is useful to extract last element of variable length tag.
@okkez
Copy link
Contributor Author

okkez commented Mar 23, 2018

Some output plugins supports negative index for tag placeholders.
I want to use this functionality with fluent-plugin-pagerduty.

@repeatedly repeatedly merged commit 39d6911 into fluent:master Mar 26, 2018
@repeatedly
Copy link
Member

LGTM. Thanks.

@okkez okkez deleted the support-negative-index branch November 16, 2018 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants