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

Http input plugin doesn't hornor parser time_format in batched scenario #2035

Closed
yantang-msft opened this issue Jun 25, 2018 · 3 comments
Closed

Comments

@yantang-msft
Copy link

Fluentd Version: 1.2.1
Environment: Windows 10
Configuration:

<source>
  @type http
  port 8887
  <parse>
    @type json
    time_format %iso8601
  </parse>
</source>

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

Problem:
Running this command curl -X POST -d '[{"foo":"bar", "time": "2018-06-12T18:35:48.1488850Z"},{"abc":"def"},{"xyz":"123"}]' http://localhost:8887/app.log gives me this error can't convert String into an exact number

It's very similar to this issue #2018 I reported earlier. The difference is this time it's the time_format parameter instead of the time_key.
With this fix #2025, I can workaround the issue by setting time_key to nil, so it's not an urgent for me. But still it would nicer if the time_format parameter is also supported in batched scenario.

@bitc
Copy link

bitc commented Jul 4, 2018

I am seeing this too. Sending a single JSON event works, but sending a JSON array with multiple events triggers this error

@yantang-msft
Copy link
Author

@fujimotos I confirm the patch fixes this issue. 😄

@fujimotos
Copy link
Member

Now it has been merged in to the master branch today.
Thanks for reporting the issue and testing the patch.

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

No branches or pull requests

3 participants