写入InfluxDB时发生不可恢复的异常

时间:2019-04-10 17:21:52

标签: apache-kafka logstash influxdb logstash-grok logstash-configuration

我正在尝试将influxdb输出插件v-5.0.5与Logstash v-6.2.3结合使用。 我正在解析异常,但进一步查看后,我发现“ logstash和时间戳值”已添加到所有输出日志中。当以rubydebug格式查看输出时,我看不到时间戳值和logstash。有人知道如何摆脱这些吗?

` [2019-04-09T15:09:33,095][WARN ][logstash.outputs.influxdb] Non recoverable exception while writing to InfluxDB
{:exception=>#<InfluxDB::Error: {"error":"unable to parse 'logstash,host=localhost username="admin",
site="test",timestamp_local="20190409120930",resource_type="/users/admin",timestamp=1554811770000i,
@timestamp=2019-04-09T19:09:32.368Z,repo="api",resource_path="/users/admin",
message="20190409120930|14|REQUEST|...*|admin|GET|/users/admin|HTTP/1.1|200|0",
duration="14",clientip="...***",@version="1",statuscode="200",bytes="0",
timestamp_object=2019-04-09T12:09:30.000Z,type="request",env="stage",requesttype="REQUEST",
resource="/users/admin",resource_name="admin",method="GET",protocol="HTTP/1.1" 1554836972368': invalid number"}

}
{
"username" => "admin",
"site" => "test",
"timestamp_local" => "20190409120930",
"resource_type" => "/users/admin",
"host" => "localhost",
"timestamp" => 1554811770000,
"@timestamp" => 2019-04-09T19:09:32.368Z,
"repo" => "api",
"resource_path" => "/users/admin",
"message" => "20190409120930|14|REQUEST|...*|admin|GET|/users/admin|HTTP/1.1|200|0",
"duration" => "14",
"clientip" => "...***",
"@version" => "1",
"statuscode" => "200",
"bytes" => "0",
"timestamp_object" => 2019-04-09T12:09:30.000Z,
"type" => "request",
"env" => "stage",
"requesttype" => "REQUEST",
"resource" => "/users/admin",
"resource_name" => "admin",
"method" => "GET",
"protocol" => "HTTP/1.1"
}`

0 个答案:

没有答案