yosisa / pyfluent

A python client library for Fluentd
Apache License 2.0
15 stars 1 forks source link

error: time must be a Fluent::EventTime (or Integer): Float #1

Open markuman opened 5 years ago

markuman commented 5 years ago
fluentd ecs/fluentd/f37d9484-e2da-47b7-ae49-0204e9e797ba 2019-07-06 10:11:31 +0200 [error]: #1 unexpected error on reading data host="10.103.11.2" port=51852 error_class=ArgumentError error="time must be a Fluent::EventTime (or Integer): Float"
>>> import time
>>> from pyfluent.client import FluentSender
>>> fluent = FluentSender('fluentd.testhost', 24224, 'testcase')
>>> fluent.send({'hello': 'fluent'}, 'pyfluent.info', time.time() - 60)
markuman commented 5 years ago

...using fluentd 1.6