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

in_forward: add new option 'tag_prefix' (#4455) #4466

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

edsiper
Copy link
Member

@edsiper edsiper commented Dec 16, 2021

This patch adds a new option called 'tag_prefix' that allows to prefix the
incoming Tag set by the remote client.

Usage:

--- config file ---

[SERVICE]
flush 1
log_level info

[INPUT]
name forward
tag_prefix new.

[OUTPUT]
name stdout
match *

--- end ---

terminal 1:

$ echo "{"key": "test"}" | fluent-cat test

terminal 2:

$ bin/fluent-bit -i forward -p tag_prefix=new. -o stdout -f 1
...
[0] new.test: [1639626354.501658295, {"key"=>"test"}]

Signed-off-by: Eduardo Silva [email protected]


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:

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

Documentation

  • Documentation required for this feature

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.

This patch adds a new option called 'tag_prefix' that allows to prefix the
incoming Tag set by the remote client.

Usage:

--- config file ---

 [SERVICE]
     flush        1
     log_level    info

 [INPUT]
     name         forward
     tag_prefix   new.

 [OUTPUT]
     name         stdout
     match        *

--- end ---

> terminal 1:

  $ echo "{\"key\": \"test\"}" | fluent-cat test

> terminal 2:

  $ bin/fluent-bit -i forward -p tag_prefix=new. -o stdout -f 1
  ...
  [0] new.test: [1639626354.501658295, {"key"=>"test"}]

Signed-off-by: Eduardo Silva <[email protected]>
@edsiper edsiper merged commit 4859fbc into master Dec 16, 2021
edsiper added a commit that referenced this pull request Jan 6, 2022
This patch adds a new option called 'tag_prefix' that allows to prefix the
incoming Tag set by the remote client.

Usage:

--- config file ---

 [SERVICE]
     flush        1
     log_level    info

 [INPUT]
     name         forward
     tag_prefix   new.

 [OUTPUT]
     name         stdout
     match        *

--- end ---

> terminal 1:

  $ echo "{\"key\": \"test\"}" | fluent-cat test

> terminal 2:

  $ bin/fluent-bit -i forward -p tag_prefix=new. -o stdout -f 1
  ...
  [0] new.test: [1639626354.501658295, {"key"=>"test"}]

Signed-off-by: Eduardo Silva <[email protected]>
0Delta pushed a commit to 0Delta/fluent-bit that referenced this pull request Jan 20, 2022
This patch adds a new option called 'tag_prefix' that allows to prefix the
incoming Tag set by the remote client.

Usage:

--- config file ---

 [SERVICE]
     flush        1
     log_level    info

 [INPUT]
     name         forward
     tag_prefix   new.

 [OUTPUT]
     name         stdout
     match        *

--- end ---

> terminal 1:

  $ echo "{\"key\": \"test\"}" | fluent-cat test

> terminal 2:

  $ bin/fluent-bit -i forward -p tag_prefix=new. -o stdout -f 1
  ...
  [0] new.test: [1639626354.501658295, {"key"=>"test"}]

Signed-off-by: Eduardo Silva <[email protected]>
@lecaros lecaros added the backport to v1.8.x Used to tag items that must be backported to such version. label Jan 20, 2022
@lecaros lecaros added this to the Fluent Bit v1.8.12 milestone Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport to v1.8.x Used to tag items that must be backported to such version. docs-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants