Having problems with setup of logstash-output-influxdb. My config is below:
input {
udp {
port => 11514
type => "threat"
}
}
filter {
if [type] =="threat" {
grok {
#patterns_dir =>"/opt/logstash/patterns"
match => ["message","%<%{POSINT}>%{MONTH} %{MONTHDAY} %{TIME} %{GREEDYDATA:message}" ]
}
csv {
source => "message"
columns => [ "Column1", "Column2", "Column3"]]
}
}
}
output {
if [type] =="threat" {
influxdb {
data_points => {'pt1' => "Column1", 'pt2' => "Column2", 'pt3' = "Column3"}
host => "10.10.10.1"
db => "syslog"
user => "user"
password => "password"
}
}
}
getting error "Expected one of #, {, } ... data_points => {"column1" => "SourceAddress""