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

Multiple match tags do not work with --use-v1-config #475

Closed
sonots opened this issue Nov 19, 2014 · 3 comments · Fixed by #478
Closed

Multiple match tags do not work with --use-v1-config #475

sonots opened this issue Nov 19, 2014 · 3 comments · Fixed by #478
Labels
bug Something isn't working

Comments

@sonots
Copy link
Member

sonots commented Nov 19, 2014

Reported by @sanemat

Previously, following config worked:

<source>
  type forward
  port 24224
</source>

<match raw.** foo.**>
  type stdout
</match>

But, with --use-v1-config, we get errors like:

/home/sonots/src/github.com/fluent/fluentd/lib/fluent/config/basic_parser.rb:87:in `parse_error!': expected '>' at fluent2.conf line 6,14 (Fluent::ConfigParseError)
  5:
  6: <match raw.** foo.**>

     --------------^
  7:   type stdout
        from /home/game/src/github.com/fluent/fluentd/lib/fluent/config/v1_parser.rb:87:in `parse_element'
        from /home/game/src/github.com/fluent/fluentd/lib/fluent/config/v1_parser.rb:41:in `parse!'
        from /home/game/src/github.com/fluent/fluentd/lib/fluent/config/v1_parser.rb:31:in `parse'
@sonots
Copy link
Member Author

sonots commented Nov 19, 2014

A simple fix is like this 25d6db5

@repeatedly
Copy link
Member

@sonots If you can, please send a PR and merge it.

@sonots
Copy link
Member Author

sonots commented Nov 19, 2014

I will make a PR later.

@repeatedly repeatedly added the bug Something isn't working label Nov 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants