-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Invalid field format" errors when writting data to InfluxDB #62
Comments
I had the same problem. I use logstash 5.1.2. I downgraded logstash-output-influxdb to version 5.0.0 and it started to work for me. Also checked logstash-output-influxdb version 4.0.0 and it worked. |
Got the same problem, any idea about it ? Output part :
I tried to with this configuration but got the same result
Log :
|
from what I was able to figure out, the problem is that it's trying to insert blank data. in 'logstash 1499666732498' - logstash is a default setting, (i think the measurement) and 1499666732498 is the timestamp that the plugin adds when to the data when it calls the influxdb http api. here's a log from influxdb for an insert that succeded: [I] 2017-07-09T12:13:44Z Write body received by handler: system.cpu,host=xxx,env=xxx,cores=4 system.pct=0.0434,softirq.pct=0.006,idle.pct=0.8249,steal.pct=0.0025,irq.pct=0.0001,iowait.pct=0.0004,user.pct=0.0012,nice.pct=0.1215 1499602423 service=httpd so my measurment is system.cpu and the timestamp is 1499602423 . it's passing all the correct data. in your log, it's not passing anything. |
I tried with the 5.0.0 version plugin ... with no more sucess The message is the same :
And here is a sample requests of the database DB :
Got really no idea of what could happen.. Edit : I still got some data in the database, even if errors are displayed into the logstash logs. I will investigate a little, to view if something else like strange |
Well, as what I see, problem seems to be empty data_points fields If I add one parameter, such as 'environnement' in this config :
It work, data is insered into InfluxDB, and I got no error message. If someone could verify this point ! |
I tested I confirm that does not work. |
hello i use this configuration its works output { ~ |
I hoped it will worked for me and proceed to test immediately. But it does not work, maybe my input is packetbeat and your is metricbeat. But thanks for your sharing! |
Hello,
On logstash part : input { filter { } output { } As far as I can understand from the errors in the logs, the logstash influxdb plugin sends prospector field as a boolean where the field is a string. I hope this is helpful, Fotis |
In my case (logspout to logstash 6.5.4), event fields is "message" and cause empty data_points fields issue like below. Check the default value of exclude_fields here.
I finally figured out two workable configuration choices. Both will set "message" as data points field.
or
|
Hi, The logstash output plugin can be use with coerce_values parameter to convert data point values to the appropriate type before posting. ℹ️ currently supported datatypes are integer and float 📌 Please have a look under the issue 11143 to see a full conf file example. |
invalid field format
displayed in Logstash logs:The text was updated successfully, but these errors were encountered: