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

add relabel plugin to add-filter-and-label branch #417

Merged
merged 1 commit into from
Aug 21, 2014

Conversation

sonots
Copy link
Member

@sonots sonots commented Aug 21, 2014

This is a config example:

<source>
  type dummydata_producer
  tag  dummy.data
  rate 1        # messages per second
  dummydata0   {"type":"sample","code":50,"format":"json string allowed"}
  dummydata1   {"message":"other format needed?"}
  dummydata2   {"comment":"N of dummydataN is number and not limited"}
  @label @raw
</source>

<match flowcounter>
  type stdout
</match>

<label @raw>
  <match **>
    type copy
    <store>
      type flowcounter
      count_keys *
      unit second
      aggregate all
      tag flowcounter
    </store>
    <store>
      type relabel
      @label @main
    </store>
  </match>
</label>

<label @main>
  <match **>
    type stdout
  </match>
</label>

@sonots
Copy link
Member Author

sonots commented Aug 21, 2014

@repeatedly Are there any ways to test routing?

@repeatedly
Copy link
Member

@sonots Currently there is no way. Because add-filter-and-label branch is very active so implementation will be changed frequently.

class RelabelOutput < Output
Plugin.register_output('relabel', self)

def initialize
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need re-definition if call only super

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@repeatedly repeatedly merged this pull request into fluent:add-filter-and-label Aug 21, 2014
repeatedly added a commit that referenced this pull request Aug 24, 2014
From sonots's PR: #417
@sonots sonots deleted the relabel_plugin branch November 24, 2014 15:39
@repeatedly
Copy link
Member

Could you send a PR to fluentd-docs to add out_relabel?

@sonots
Copy link
Member Author

sonots commented Jun 1, 2015

okay, I will do it later.

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