Hi im new to logstash what does this error mean? (version 5.6.8)
Cannot create pipeline {:reason=>"Expected one of #, {, ,, ] at line 33, column 26
input {
file { path => ["/var/log/collectd.logstash.log"]
start_position => beginning
sincedb_path => ["/var/log/collectd/logstash.log"]
}
udp {
port => 25828
buffer_size => 1452
codec => collectd{ typesdb => ["/usr/share/collectd/types.db"] }
}
}
filter {
if "_grokparsefailure" in [tags] {
drop { }
grok {
match => { "message" => "%{NUMBER:duration}, %{NUMBER:value}, %{DATA:value}, %{WORD:host}, %{IP:client}"}
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "cpu", "%{NUMBER:cpu}" ]
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
add_field => [ "value", "%{NUMBER:value} %{DATA:value}" ]
add_field => [ "test", "%{WORD:test} ]
}
}
output {
file { path => [ "/var/log/logstash/logstash2.log" ] }
elasticsearch { hosts => ["localhost:9200"] }
influxdb {
use_event_fields_for_data_points => true
data_points => {}
host => localhost
db => collectd
coerce_values => {"value" => "float"}
}
stdout {
codec => rubydebug }
Thnx in advance
Owusu
}