I expect the status code(302), request time(0.631) and response time(0.631) should be saved into influxdb AS number/float data type. But actually all of them are stored as string.
> select * from fe_portal
name: fe_portal
time agent code hostname method path project referer region remote request_time response_time size tailed_path timestamp user version
---- ----- ---- -------- ------ ---- ------- ------- ------ ------ ------------ ------------- ---- ----------- --------- ---- -------
1572110977000000000 GoogleHC/1.0 302 wf20-td-agent-test-1-0 GET / prod-test - asia-southeast1 127.0.0.1 0.630 0.630 4801 /var/log/pan/my-access-test.log 26/Oct/2019:17:29:21 +0000 - HTTP/1.0
> select request_time::float from fe_portal
> select request_time::string from fe_portal
name: fe_portal
time request_time
---- ------------
1572110977000000000 0.630
>
Hi, I try to use this plugin to convert nignx access log into metrics and push it into influxdb. The nginx access log format likes the following:
I expect the status code(302), request time(0.631) and response time(0.631) should be saved into influxdb AS number/float data type. But actually all of them are stored as string.
My fluentd config likes the following: