I am trying to insert data to InfluxDB using Logstash with input method SQS: I send message to Sqs and Logstash reads the messages from Sqs and tries to put data to InfluxDB.
I have set logstash like below, however, the attempt to insert data to influxDB keeps making an error saying [WARN ][logstash.outputs.influxdb] Non recoverable exception while writing to InfluxDB {:exception=>#<Errno::EPIPE: Broken pipe - No message available>} . As you can see, the output of stdout seems fine. What am I doing wrong?
Any advice or suggestion would be very appreciated.
In v 5.0.0 we switched to using the influx db ruby client instead of a general http client.
There is a report of the same error you are seeing in the pre 5.0.0 version but nothing since.
That said, the current release of the logstash-output-influxdb is constrained to use version 0.3.X of the influxdb client. Since then the infuxdb folks have released 0.4.X -> 0.7.X of their client.
I have to presume that other users can use this output with v1.7.5 of influxdb.
The last "problem" issue was logged in the plugin repo in October last year indicated an issue with interpolation of the db setting and not a general communications issue, so presumably it mostly worked for this user.
With InfluxDB running, visit localhost:9999.
Click Get Started
Enter a Username for your initial user.
Enter a Password and Confirm Password for your user.
Enter your initial Organization Name.
Enter your initial Bucket Name.
Perhaps you need to create a organization, user, password and database (bucket) and then update the influxdb output to use those values (except organization, there is no setting for this).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.