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 {
influxdb{
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!!