HI All,
I am trying to send rsyslog and gelf msgs from logstash to Graylog server
I am getting the below error
:reason=>"Expected one of #, { at line 18, column 12 (byte 207) after output {\n if [type] == "rsyslog\
my config file looks like this
input {
udp {
host => "0.0.0.0"
port => 10514
type => "rsyslog"
}
udp {
host => "0.0.0.0"
port => 12205
type => "gelf"
}
}
filter {}
output {
if [type] == "rsyslog" {
host => "172.16.0.27"
port => 12201
protocol => "tcp"
}
if [type] == "gelf" {
host => "172.16.0.27"
port => 12202
protocol => "tcp"
}
stdout {}
ok thanks.. sorry, this time its different
logstash.outputs.gelf ] Invalid setting for gelf output plugin:
output {
gelf {
# This setting must be a ["TCP", "UDP"]
# Expected one of ["TCP", "UDP"], got ["tcp"]
protocol => "tcp"
...
}
}
[2019-02-13T16:15:11,315][ERROR][logstash.agent ] Cannot create pipeline {:reason=>"Something is wrong with your configuration."}
I have changed the typr from tcp to TCP still the error continues
I have changed the config file and restarted the machine
but now it is saying something wrong with syslog output
output {
syslog {
# This setting must be a ["tcp", "udp", "ssl-tcp"]
# Expected one of ["tcp", "udp", "ssl-tcp"], got ["TCP"]
protocol => "TCP"
...
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.