Logstash And InfluxDB configuration


(Vishal Shah) #1

Hi I am trying to ingest the data collected by logstash into InfluxDB. Following are rows from the Log file:

2017-10-04 22:21:31 +0000 UTC | SourceNode | LogLevel | Module | ProcessStatus | ProcessName | DestinationNode

I went through a lot of resources but I was not able to configure the services to forward the data to Influx. However the data can be easily forwarded to elastic search and it works fine.

The configuration file looks as following:

input {
tcp {
port => 5959
codec => json
}
}

filter{
dissect {
mapping => { "message" => "%{time_stamp} | %{notifier} | %{level} | %{module} | %{proc_status} | %{process} | %{nodes}" }
}
}

output
{
stdout { codec => json }

elasticsearch {
codec => json
hosts => ["10.240.0.46:9200"]
ssl => "false"
}

influxdb {
codec => plain
data_points => {}
host => host-ip
db => "logs"
user => username
password => password
}
}

Can somebody point out the problem with the configuration file and recommend solutions?


(Mark Walkom) #2

I'd start by removing that, not sure it would apply to influx.


(system) #3

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