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 <record> with dynamic parameter #7

Merged
merged 12 commits into from
Jan 8, 2016

Conversation

repeatedly
Copy link
Owner

For better performance compared to record_transformer but several features are not supported.

  • tag_suffix, tag_prefix
  • dynamic key placeholder

@repeatedly
Copy link
Owner Author

Performance check with 100,000 nginx logs/sec traffic with fluent-agent-hydra.
Here is configuration:

<source>
  @type forward
</source>

<filter hydra.**>
  @type record_modifier
  <record>
    foo bar
    tag ${tag}.suffix
    tag_prefix ${tag_parts[0]}
  </record>
</filter>

<filter ydra.**>
  @type record_transformer
  <record>
    foo bar
    tag ${tag}.suffix
    tag_prefix ${tag_parts[0]}
  </record>
</filter>

<match hydra.access>
  @type flowcounter_simple
</match>
  • record_transformer

record_transformer result

  • record_modifier with define_method

record_modifier with define_method

  • record_modifier with string eval (patch implementation)

 record_modifier with string eval

repeatedly added a commit that referenced this pull request Jan 8, 2016
…amic-expander

Support <record> with dynamic parameter
@repeatedly repeatedly merged commit f294598 into master Jan 8, 2016
@repeatedly repeatedly deleted the support-record-section-with-dynamic-expander branch August 5, 2016 18:08
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.

1 participant