Search code examples
logstashinfluxdb

Logstash with inluxdb


Please help to understand. I installed on my host logstash and influxdb. Create database with user on influxdb and change output parameter to it. Also installed logstash-output-influxdb. There is example :

output {
    http {
            url => "http://localhost:8086/db/logstash/series?u=root&p=root"
            format => "message"
            content_type => "application/json"
            http_method => "post"
            message => "%{message}"
            verify_ssl => false
    }
    stdout {}
}

But nothing. How investigate it or what step i missed. Help please. If someone working with this give some exaples of configs.


Solution

  • The URL in your example is valid only for the API in InfluxDB 0.8 or earlier. Since you are using 0.9.6, that endpoint does not exist. In addition, the JSON write protocol is deprecated in 0.9.x, although still functional.

    It sounds as though all the logstash docs reference InfluxDB 0.8 API and endpoints. I don't think you can trust much of it to be precise. Perhaps ask the maintainers to update the examples for InfluxDB 0.9+