{"action":"created","issue":{"url":"https://api.github.com/repos/fluent/fluent-bit/issues/662","repository_url":"https://api.github.com/repos/fluent/fluent-bit","labels_url":"https://api.github.com/repos/fluent/fluent-bit/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluent-bit/issues/662/comments","events_url":"https://api.github.com/repos/fluent/fluent-bit/issues/662/events","html_url":"https://github.com/fluent/fluent-bit/issues/662","id":336841641,"node_id":"MDU6SXNzdWUzMzY4NDE2NDE=","number":662,"title":"\"time string length is too long\" when using fractional seconds","user":{"login":"theasp","id":7775024,"node_id":"MDQ6VXNlcjc3NzUwMjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7775024?v=4","gravatar_id":"","url":"https://api.github.com/users/theasp","html_url":"https://github.com/theasp","followers_url":"https://api.github.com/users/theasp/followers","following_url":"https://api.github.com/users/theasp/following{/other_user}","gists_url":"https://api.github.com/users/theasp/gists{/gist_id}","starred_url":"https://api.github.com/users/theasp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theasp/subscriptions","organizations_url":"https://api.github.com/users/theasp/orgs","repos_url":"https://api.github.com/users/theasp/repos","events_url":"https://api.github.com/users/theasp/events{/privacy}","received_events_url":"https://api.github.com/users/theasp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-29T02:30:27Z","updated_at":"2018-07-02T21:49:11Z","closed_at":null,"author_association":"NONE","body":"I'm getting the error `time string length is too long` when using fractional seconds and the format `%s.%L`:\r\n```\r\n[2018/06/29 02:17:12] [debug] [out_fw] 2 entries tag='tag_hostname.tag_username.bash' tag_len=30\r\n[2018/06/29 02:17:12] [debug] [task] destroy task=0x7f159a903000 (task_id=0)\r\n[2018/06/29 02:17:12] [debug] [dyntag tail.0] 0x7f159f670060 destroy (tag=tag_hostname.tag_username.bash, bytes=318)\r\n[2018/06/29 02:17:19] [debug] [in_tail] file=/home/asp/.bash_log/industrial.gt0.ca/70d26b1e-fb75-4187-adca-1591ac9bfc04.json event\r\n[2018/06/29 02:17:19] [error] [parser] time string length is too long\r\n[2018/06/29 02:17:19] [debug] [input tail.0] [mem buf] size = 155\r\n[2018/06/29 02:17:19] [debug] [in_tail] file=/home/asp/.bash_log/industrial.gt0.ca/70d26b1e-fb75-4187-adca-1591ac9bfc04.json read=174 lines=1\r\n[2018/06/29 02:17:20] [debug] [in_tail] file=/home/asp/.bash_log/industrial.gt0.ca/70d26b1e-fb75-4187-adca-1591ac9bfc04.json event\r\n[2018/06/29 02:17:20] [error] [parser] time string length is too long\r\n[2018/06/29 02:17:20] [debug] [input tail.0] [mem buf] size = 322\r\n[2018/06/29 02:17:20] [debug] [in_tail] file=/home/asp/.bash_log/industrial.gt0.ca/70d26b1e-fb75-4187-adca-1591ac9bfc04.json read=193 lines=1\r\n[2018/06/29 02:17:22] [debug] [task] created task=0x7f159a903000 id=0 OK\r\n[2018/06/29 02:17:22] [debug] [out_forward] request 322 bytes to flush\r\n[2018/06/29 02:17:22] [debug] [out_fw] 2 entries tag='tag_hostname.tag_username.bash' tag_len=30\r\n```\r\n\r\nsample:\r\n```json\r\n{\"type\":\"end\",\"timestamp\":1530239065.807368,\"session\":\"70d26b1e-fb75-4187-adca-1591ac9bfc04\",\"username\":\"\",\"hostname\":\"industrial.gt0.ca\",\"id\":285,\"cmd\":\"less /srv/asp-fluentd-bash/etc/fluent-bit.conf\",\"rc\":0}\r\n{\"type\":\"start\",\"timestamp\":1530239069.60937,\"session\":\"70d26b1e-fb75-4187-adca-1591ac9bfc04\",\"hostname\":\"industrial.gt0.ca\",\"id\":286,\"cmd\":\"less /srv/asp-fluentd-bash/etc/parsers.conf\"}\r\n```\r\n\r\nfluent-bit.conf:\r\n```\r\n[SERVICE]\r\n  Flush 5\r\n  Daemon off\r\n  Parsers_File parsers.conf\r\n  Log_Level debug\r\n\r\n[INPUT]\r\n  Name tail\r\n  Path /home/asp/.bash_log/*/*.json\r\n  DB /home/asp/.bash_log/.fluent-bit.db\r\n  Parser bash-log-json\r\n  Tag tag_hostname.tag_username.bash\r\n\r\n[OUTPUT]\r\n  Name forward\r\n  Match *\r\n  Host fluentd\r\n  Port 24224\r\n```\r\n\r\nparsers.conf:\r\n```\r\n[PARSER]\r\n  Name bash-log-json\r\n  Format json\r\n  Time_Key timestamp\r\n  Time_Format %s.%L\r\n```"},"comment":{"url":"https://api.github.com/repos/fluent/fluent-bit/issues/comments/401948516","html_url":"https://github.com/fluent/fluent-bit/issues/662#issuecomment-401948516","issue_url":"https://api.github.com/repos/fluent/fluent-bit/issues/662","id":401948516,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTk0ODUxNg==","user":{"login":"theasp","id":7775024,"node_id":"MDQ6VXNlcjc3NzUwMjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/7775024?v=4","gravatar_id":"","url":"https://api.github.com/users/theasp","html_url":"https://github.com/theasp","followers_url":"https://api.github.com/users/theasp/followers","following_url":"https://api.github.com/users/theasp/following{/other_user}","gists_url":"https://api.github.com/users/theasp/gists{/gist_id}","starred_url":"https://api.github.com/users/theasp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theasp/subscriptions","organizations_url":"https://api.github.com/users/theasp/orgs","repos_url":"https://api.github.com/users/theasp/repos","events_url":"https://api.github.com/users/theasp/events{/privacy}","received_events_url":"https://api.github.com/users/theasp/received_events","type":"User","site_admin":false},"created_at":"2018-07-02T21:49:11Z","updated_at":"2018-07-02T21:49:11Z","author_association":"NONE","body":"That makes perfect sense!  Yeah, I suppose I could convert it to a string, or deal with the timestamp when it gets to fluentd.   Reading time as epoch seconds (float or int) seems like it should be supported though.  Maybe attempt to use the value if `Time_Format` isn't set?"}}
{"actor":{"display_login":"theasp"}}