{"email":"lkmlkm...@gmail.com","timestamp":1496051232,"ip":"66.102.9.31","sg_event_id":"NjAyZTFjODktNDYzYi00MGU2LWE4YzItYWQxOWRkMzU0NzBk","sg_message_id":"MHAD6Q66TbS2PhQCkdpEgw.filter0069p1las1-8821-59240799-33.0","category":"sdfefvsdc","useragent":"Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)","event":"open"}<source>
@type http
bind 176.W.Z.X
port 8887
format json
</source>
<filter send.grid>
@type split_array
</filter>
<match sk.**>
@type copy
<store>
@type file
path /var/log/sglog/sk/current/sk
time_slice_format %Y%m%d%H
time_slice_wait 1m
compress gzip
utc
</store>
<store>
@type elasticsearch
logstash_format true
logstash_prefix sg-sk
logstash_dateformat %Y-%m
time_key timestamp
time_key_format %s
# time_parse_error_tag es_plugin.output.time.error
id_key sg_event_id
host localhost
port 9200
buffer_type memory
buffer_chunk_limit 64M
buffer_queue_limit 32
flush_interval 10s
retry_limit 17
retry_wait 1.0
num_threads 1
</store>
</match>2017-05-29 12:41:59 +0300 [warn]: dump an error event: error_class=TypeError error="no implicit conversion of Fixnum into String" tag="Fluent::ElasticsearchOutput::TimeParser.error" time=1496050919 record={"tag"=>"sk", "time"=>1496050913, "format"=>"%s", "value"=>1496050879}
2017-05-29 12:43:29 +0300 [warn]: dump an error event: error_class=TypeError error="no implicit conversion of Fixnum into String" tag="Fluent::ElasticsearchOutput::TimeParser.error" time=1496051009 record={"tag"=>"sk", "time"=>1496051004, "format"=>"%s", "value"=>1496050972}
2017-05-29 12:43:29 +0300 [warn]: dump an error event: error_class=TypeError error="no implicit conversion of Fixnum into String" tag="Fluent::ElasticsearchOutput::TimeParser.error" time=1496051009 record={"tag"=>"sk", "time"=>1496051004, "format"=>"%s", "value"=>1496050973}
2017-05-29 12:43:29 +0300 [warn]: dump an error event: error_class=TypeError error="no implicit conversion of Fixnum into String" tag="Fluent::ElasticsearchOutput::TimeParser.error" time=1496051009 record={"tag"=>"sk", "time"=>1496051005, "format"=>"%s", "value"=>1496050972}
2017-05-29 12:43:29 +0300 [warn]: dump an error event: error_class=TypeError error="no implicit conversion of Fixnum into String" tag="Fluent::ElasticsearchOutput::TimeParser.error" time=1496051009 record={"tag"=>"sk", "time"=>1496051005, "format"=>"%s", "value"=>1496050972}Hi,I have the following pipeline:SaaS ->HTTP POST JSON array -> Fluentd -> ElasticSearchEvery incomming message in array has field "timestamp" in unix epoch time format. Example:
{"email":"lkmlkmlkmlkm@gmail.com","timestamp":1496051232,"ip":"66.102.9.31","sg_event_id":"NjAyZTFjODktNDYzYi00MGU2LWE4YzItYWQxOWRkMzU0NzBk","sg_message_id":"MHAD6Q66TbS2PhQCkdpEgw.filter0069p1las1-8821-59240799-33.0","category":"sdfefvsdc","useragent":"Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)","event":"open"}
--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
time_key timestamp
time_key_format %s
The log is "warn", so it seems not critical logs.I checked the code and the problem is parse_time method doesn't consider non-string timestamp.This is why fluentd log has these warnings.Masahiro
On Mon, May 29, 2017 at 7:08 PM, George Piskorsky <pig...@gmail.com> wrote:
Hi,I have the following pipeline:SaaS ->HTTP POST JSON array -> Fluentd -> ElasticSearchEvery incomming message in array has field "timestamp" in unix epoch time format. Example:
{"email":"lkmlkm...@gmail.com","timestamp":1496051232,"ip":"66.102.9.31","sg_event_id":"NjAyZTFjODktNDYzYi00MGU2LWE4YzItYWQxOWRkMzU0NzBk","sg_message_id":"MHAD6Q66TbS2PhQCkdpEgw.filter0069p1las1-8821-59240799-33.0","category":"sdfefvsdc","useragent":"Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0 (via ggpht.com GoogleImageProxy)","event":"open"}
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.