Logstash and InfluxDB

Hello everyone!

I'm struggling with cooperation of Logstash and InfluxDB. I'm trying to use Logstash for parsing some data and then push them to influxdb. I'm trying it with influxdb output plugin that seems not be really useful at least it doesn't work for me...

So after I used config file like this:

input {
  file {
    path => "/root/logs.txt"
    start_position => "beginning"

output {
   host => "localhost"

I decided to try a http output plugin like following:

output {
   http {
   url => "http://localhost:8086/db/mydb"
   http_method => "post"
   format => "message"

So any of these config options don't work as I'd expected...

The txt file contains one word. I run InfluxDB in docker. What are really the ways to use logstash for parsing data with influxdb output?

Any help would be appreciated!!

I've never used influxdb but there is another required setting for data_points you might want to try.

I'll try it. Thank you! I think the problem is with the .conf file in Logstash or some data type issue ...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.